Skip to content

Commit

Permalink
Only upload to LuaRocks on successful CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Sep 28, 2024
1 parent 821e2e2 commit 45b2760
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,20 @@ jobs:
run: just test
env:
TEST_SEQUENTIAL: 1

release:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')

needs: ci
runs-on: ubuntu-latest

permissions:
attestations: write
contents: write

steps:
- uses: actions/checkout@v4
- name: Upload to LuaRocks
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
17 changes: 0 additions & 17 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 45b2760

Please sign in to comment.