Skip to content

Commit

Permalink
feat(ci): add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Mar 29, 2024
1 parent 9c380aa commit 121d960
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-planning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 📦 Release
run-name: "${{ inputs.env == 'prd' && 'PRD' || 'STG' }} - 🧼 Linting ${{ github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title) || format('latest {0}', github.ref_name) }}"

on:
workflow_dispatch:
push:
branches: ["release/*"]

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
NODE_VERSION: 20

jobs:
create-release:
name: ≅ Create Release
runs-on: ubuntu-latest
environment:
name: ${{ inputs.env }}
url: "https://${{ vars.WWW_DOMAIN }}"

env:
repo: ${{ github.repository }}

steps:
- name: Prepare Conditions
run: |
echo "BRANCH"
RELEASE_NAME=$(echo "$BRANCH_NAME" | grep -oP "(?<=release\/)\d+")
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV
echo "the renemase is named ${{ env.RELEASE_NAME }}"
# - name: 𐂷 Checkout
# uses: actions/checkout@v4
# with:
# ref: ${{ github.ref }}
# token: ${{ github.token }}
# fetch-depth: 1

0 comments on commit 121d960

Please sign in to comment.