Skip to content

Commit a03d92e

Browse files
authored
Add luarocks-tag-release workflow (#11)
1 parent 57f7e31 commit a03d92e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "Release"
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
luarocks-release:
10+
runs-on: ubuntu-latest
11+
name: Luarocks Release
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
if: env.LUAROCKS_API_KEY != null
16+
- name: Luarocks Upload
17+
uses: nvim-neorocks/luarocks-tag-release@v5
18+
if: env.LUAROCKS_API_KEY != null
19+
env:
20+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The intention is that you use this template to create a new repository where you
66
The template includes the following:
77

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

0 commit comments

Comments
 (0)