From 23b1611ca6fc5b76fb52e5e2fd77db86e5cd7892 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Tue, 27 Jun 2023 12:57:43 -0700 Subject: [PATCH] ci: use release-please to tag releases --- .github/workflows/tests.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7dba080..a512819 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,7 +36,7 @@ jobs: matrix: include: - nvim_tag: v0.8.3 - - nvim_tag: v0.9.0 + - nvim_tag: v0.9.1 name: Run tests runs-on: ubuntu-22.04 @@ -52,3 +52,27 @@ jobs: - name: Run tests run: | 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