|
10 | 10 | - doc/* |
11 | 11 | workflow_dispatch: |
12 | 12 |
|
13 | | -# https://github.com/softprops/action-gh-release/issues/236 |
14 | | -permissions: |
15 | | - contents: write |
| 13 | +# Prevent concurrent auto-commits |
| 14 | +concurrency: |
| 15 | + group: auto-commit |
| 16 | + cancel-in-progress: true |
16 | 17 |
|
17 | 18 | jobs: |
18 | 19 | build: |
19 | 20 | runs-on: ubuntu-latest |
20 | 21 | steps: |
21 | 22 | - uses: actions/checkout@v4 |
22 | | - - uses: leafo/gh-actions-lua@v10 |
23 | | - with: |
24 | | - luaVersion: "5.1" |
25 | | - - uses: leafo/gh-actions-luarocks@v4 |
26 | | - - name: Build |
27 | | - run: | |
28 | | - luarocks install --local \ |
29 | | - --tree ~/work/code-stats.nvim/code-stats.nvim/.luarocks \ |
30 | | - assets/rockspecs/xml-1.1.3-1.rockspec |
31 | | - luarocks pack ./*.rockspec |
32 | | - luarocks build |
33 | | - luarocks pack code-stats.nvim |
34 | | - - uses: actions/upload-artifact@v4 |
| 23 | + - uses: nvim-neorocks/luarocks-tag-release@v7 |
| 24 | + env: |
| 25 | + LUAROCKS_API_KEY: ${{secrets.LUAROCKS_API_KEY}} |
35 | 26 | if: "! startsWith(github.ref, 'refs/tags/')" |
36 | 27 | with: |
37 | | - path: | |
38 | | - *.rock |
39 | | - - uses: softprops/action-gh-release@v2 |
| 28 | + extra_luarocks_args: | |
| 29 | + --force |
| 30 | + version: scm |
| 31 | + template: template.rockspec |
| 32 | + - uses: nvim-neorocks/luarocks-tag-release@v5 |
| 33 | + env: |
| 34 | + LUAROCKS_API_KEY: ${{secrets.LUAROCKS_API_KEY}} |
40 | 35 | if: startsWith(github.ref, 'refs/tags/') |
41 | 36 | with: |
42 | | - # body_path: build/CHANGELOG.md |
43 | | - files: | |
44 | | - *.rock |
45 | | - - name: Upload |
46 | | - # if: startsWith(github.ref, 'refs/tags/') |
47 | | - run: | |
48 | | - luarocks install luajson |
49 | | - luarocks upload --force --api-key ${{secrets.LUAROCKS_API_KEY}} \ |
50 | | - ./*.rockspec |
| 37 | + extra_luarocks_args: | |
| 38 | + --force |
| 39 | + template: template.rockspec |
0 commit comments