Skip to content

Commit

Permalink
feat: add automatic tagging of releases in GitHub Actions workflow
Browse files Browse the repository at this point in the history
Signed-off-by: wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Dec 20, 2024
1 parent 0ec1204 commit 550722e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
id: get_version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV

- name: Create tag
if: github.event.pull_request.merged == true
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git tag v${{ env.VERSION }}
git push origin v${{ env.VERSION }}
- name: Publish release
if: github.event.pull_request.merged == true
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 550722e

Please sign in to comment.