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