Skip to content

Commit

Permalink
Add luarocks-tag-release workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored May 30, 2024
1 parent 57f7e31 commit a03d92e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Release"
on:
push:
tags:
- 'v*.*.*'

jobs:
luarocks-release:
runs-on: ubuntu-latest
name: Luarocks Release
steps:
- name: Checkout
uses: actions/checkout@v3
if: env.LUAROCKS_API_KEY != null
- name: Luarocks Upload
uses: nvim-neorocks/luarocks-tag-release@v5
if: env.LUAROCKS_API_KEY != null
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The intention is that you use this template to create a new repository where you
The template includes the following:

- GitHub workflows to run linters and tests
- Packaging of tagged releases and upload to [LuaRocks](https://luarocks.org/)
if a [`LUAROCKS_API_KEY`](https://luarocks.org/settings/api-keys) is added
to the [GitHub Actions secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository)
- Minimal test setup
- EditorConfig
- A .luacheckrc
Expand Down

0 comments on commit a03d92e

Please sign in to comment.