ci: use release-please to tag releases
This commit is contained in:
parent
a2b7ab5e99
commit
23b1611ca6
1 changed files with 25 additions and 1 deletions
26
.github/workflows/tests.yml
vendored
26
.github/workflows/tests.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- nvim_tag: v0.8.3
|
- nvim_tag: v0.8.3
|
||||||
- nvim_tag: v0.9.0
|
- nvim_tag: v0.9.1
|
||||||
|
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
@ -52,3 +52,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-22.04
|
||||||
|
steps:
|
||||||
|
- uses: google-github-actions/release-please-action@v3
|
||||||
|
id: release
|
||||||
|
with:
|
||||||
|
release-type: simple
|
||||||
|
package-name: oil.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…
Add table
Add a link
Reference in a new issue