Skip to content

Commit

Permalink
Merge pull request #11 from dlvandenberg/automated-tag-release
Browse files Browse the repository at this point in the history
chore: Create action to automate tag and release with merge to main
  • Loading branch information
dlvandenberg authored Mar 4, 2024
2 parents 6d02054 + 2e4e8fc commit f70aa7a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ jobs:
node-version: 18
- run: npm install
- run: npm run test:windows

tag_release:
runs-on: ubuntu-latest
if: github.ref_name == github.event.repository.default_branch
steps:
- name: Create tag
uses: mathieudutour/github-tag-action@v6.1
id: tag_version
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
uses: ncipollo/release-action@v1.14.0
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_version }}
body: ${{ steps.tag_version.outputs.changelog }}

0 comments on commit f70aa7a

Please sign in to comment.