Skip to content

Commit

Permalink
create tag as part of release workflow (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 authored Feb 6, 2025
1 parent 99ae815 commit 093539f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,32 @@ jobs:
run: |
gh pr comment $PR_NUMBER --body "$COMMENT_BODY" --repo "$GITHUB_REPOSITORY"
tag:
name: Create release tag
runs-on: ubuntu-latest
needs: build

steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- name: Parse version
id: version
uses: ./.github/parse-version

- name: Tag release
run: |
git config --global user.name 'awana-release-bot[bot]'
git config --global user.email '${{ vars.RELEASE_BOT_USER_ID }}+awana-release-bot[bot]@users.noreply.github.com'
git tag v${{ steps.version.outputs.releaseShort }}
git push origin v${{ steps.version.outputs.releaseShort }}

0 comments on commit 093539f

Please sign in to comment.