Skip to content

Commit

Permalink
👷 Add luarocks-tag-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jun 20, 2024
1 parent c295ae5 commit f9d8ee1
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v10
- uses: leafo/gh-actions-luarocks@v4
- name: Build
run: |
luarocks pack ./*.rockspec
luarocks build
luarocks pack prompt-style
- uses: actions/upload-artifact@v3
if: "! startsWith(github.ref, 'refs/tags/')"
- uses: actions/checkout@v4
- uses: nvim-neorocks/luarocks-tag-release@v5
env:
LUAROCKS_API_KEY: ${{secrets.LUAROCKS_API_KEY}}
with:
path: |
*.rock
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# body_path: build/CHANGELOG.md
files: |
*.rock
- name: Upload
if: startsWith(github.ref, 'refs/tags/')
run: |
# https://github.com/luarocks/luarocks/issues/559
luarocks install dkjson
luarocks upload ./*.rockspec --api-key ${{secrets.LUAROCKS_API_KEY}}
name: prompt-style

deploy-aur:
needs: build
Expand Down

0 comments on commit f9d8ee1

Please sign in to comment.