chore(ci): add release workflow

main
olimorris 2024-08-22 11:01:32 +01:00
parent 5593b1b8f1
commit 3b07ef9657
1 changed files with 17 additions and 4 deletions

View File

@ -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