Skip to content

Commit

Permalink
Upload release to luarocks when a new version tag is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Jun 22, 2024
1 parent 0b9cff9 commit 6f666e8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release a new version
on:
push:
tags:
- '*.*.*'

jobs:
luarocks-release:
name: Upload to luarocks
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install luarocks
run: >-
sudo apt install luarocks lua-dkjson
- name: Upload rock and rockspec
run: |
luarocks upload lunamark-${{ github.ref_name }}-1.rockspec --api-key=${{ secrets.API_KEY }}

0 comments on commit 6f666e8

Please sign in to comment.