ci: add release-please to automate semantic versioning releases (#100)
This commit is contained in:
parent
1cbc4eef2e
commit
bcd9647bec
|
@ -50,3 +50,27 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
bash ./run_tests.sh
|
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
|
||||||
|
|
Loading…
Reference in New Issue