Skip to content

Commit

Permalink
chore(ci): add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Aug 22, 2024
1 parent 5593b1b commit 3b07ef9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Continuous Integration

on:
push:
branches: [main]
pull_request:
branches: [main]
branches:
- main
pull_request: ~

# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
Expand Down Expand Up @@ -52,3 +51,17 @@ jobs:
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
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

0 comments on commit 3b07ef9

Please sign in to comment.