ci: add release-please to automate semantic versioning releases (#100)

This commit is contained in:
Micah Halter 2023-06-26 11:57:54 -04:00 committed by GitHub
parent 1cbc4eef2e
commit bcd9647bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -50,3 +50,27 @@ jobs:
- name: Run tests
run: |
bash ./run_tests.sh
release:
name: release
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- luacheck
- stylua
- run_tests
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
package-name: dressing.nvim
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
if: ${{ steps.release.outputs.release_created }}
with:
tag: stable
message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
tag_exists_error: false
force_push_tag: true