3c1be44863
* Changed rock name from `sleep` to `np-sleep` * Relaxed restrictions on rock build action
37 lines
799 B
YAML
37 lines
799 B
YAML
name: Build & Upload Rockspec
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: rockspec-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout Git submodules
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: Install LuaRocks & build
|
|
run: |
|
|
sudo apt-get install -y luarocks
|
|
luarocks pack np-sleep-2.0.0-1.rockspec
|
|
|
|
- name: Upload rock artifact
|
|
uses: actions/upload-artifact@v4
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
with:
|
|
name: rockspec-artifact
|
|
path: "*.rock"
|
|
compression-level: 0
|
|
retention-days: 30
|