Skip to content

Commit 0e58e1e

Browse files
committed
👷 Add luarocks-tag-release
1 parent c295ae5 commit 0e58e1e

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/main.yml

+4-25
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,10 @@ jobs:
1616
build:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
20-
- uses: leafo/gh-actions-lua@v10
21-
- uses: leafo/gh-actions-luarocks@v4
22-
- name: Build
23-
run: |
24-
luarocks pack ./*.rockspec
25-
luarocks build
26-
luarocks pack prompt-style
27-
- uses: actions/upload-artifact@v3
28-
if: "! startsWith(github.ref, 'refs/tags/')"
29-
with:
30-
path: |
31-
*.rock
32-
- uses: softprops/action-gh-release@v1
33-
if: startsWith(github.ref, 'refs/tags/')
34-
with:
35-
# body_path: build/CHANGELOG.md
36-
files: |
37-
*.rock
38-
- name: Upload
39-
if: startsWith(github.ref, 'refs/tags/')
40-
run: |
41-
# https://github.com/luarocks/luarocks/issues/559
42-
luarocks install dkjson
43-
luarocks upload ./*.rockspec --api-key ${{secrets.LUAROCKS_API_KEY}}
19+
- uses: actions/checkout@v4
20+
- uses: nvim-neorocks/luarocks-tag-release@v5
21+
env:
22+
LUAROCKS_API_KEY: ${{secrets.LUAROCKS_API_KEY}}
4423

4524
deploy-aur:
4625
needs: build

0 commit comments

Comments
 (0)