chore(ci): add release workflow
parent
5593b1b8f1
commit
3b07ef9657
|
|
@ -2,11 +2,10 @@ name: Continuous Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches:
|
||||||
pull_request:
|
- main
|
||||||
branches: [main]
|
pull_request: ~
|
||||||
|
|
||||||
# Cancel any in-progress CI runs for a PR if it is updated
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
@ -52,3 +51,17 @@ jobs:
|
||||||
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
||||||
nvim --version
|
nvim --version
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
release:
|
||||||
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- tests
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: googleapis/release-please-action@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
||||||
|
release-type: simple
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue