Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add luarocks-tag-release workflow #11

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
mrcjkb marked this conversation as resolved.
Show resolved Hide resolved
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