diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c6fd639 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: [main] + +jobs: + Release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout source + uses: actions/checkout@v2 + - name: Go Semantic Release + uses: go-semantic-release/[email protected] + id: semrel + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + changelog-file: "CHANGELOG.md" + changelog-generator-opt: "emojis=true" + force-bump-patch-version: true + prepend: true + - name: Update Version file + uses: DamianReeves/[email protected] + with: + path: VERSION.txt + write-mode: overwrite + contents: ${{steps.semrel.outputs.version}} + - name: Git Commit Changelog + uses: stefanzweifel/[email protected] + with: + commit_message: "docs(changelog): update cl & ver after release" + file_pattern: CHANGELOG.md VERSION.txt |
