Skip to content
Merged
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
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
publish:
description: Publish to LuaRocks after validation
required: true
type: boolean
default: false

permissions:
contents: read

jobs:
luarocks:
name: Publish to LuaRocks
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64, nvoip-ci-public-release]
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v11
with:
luaVersion: "5.4"
- uses: leafo/gh-actions-luarocks@v5
- run: luarocks upload *.rockspec --api-key="$LUAROCKS_API_KEY"
- run: luarocks make --local
- if: github.event_name == 'release' || inputs.publish
run: luarocks upload *.rockspec --api-key="$LUAROCKS_API_KEY"
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
Loading