chore: update release process (#9) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Get Next Version | |
id: semver | |
uses: ietf-tools/semver-action@v1 | |
with: | |
token: ${{ github.token }} | |
branch: main | |
- name: Create tag | |
run: git tag ${{ steps.semver.outputs.next }} | |
- name: Push tag | |
run: git push --tags | |
- name: Release | |
run: gh release create ${{ steps.semver.outputs.next }} --generate-notes | |
env: | |
GH_TOKEN: ${{ github.token }} |