From 3b07ef9657b10e4351c5ff303005a33a6c63218c Mon Sep 17 00:00:00 2001 From: olimorris Date: Thu, 22 Aug 2024 11:01:32 +0100 Subject: [PATCH] chore(ci): add release workflow --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16ce4cb..fbefd75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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