Skip to content

[pre-commit.ci] pre-commit autoupdate #53

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #53

Workflow file for this run

---
"on":
push:
paths-ignore:
- "**.md"
- doc/*
pull_request:
paths-ignore:
- "**.md"
- doc/*
workflow_dispatch:
# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: luajit-2.1.0-beta3
- uses: leafo/gh-actions-luarocks@v4
- name: Build
run: |
luarocks install --local \
--tree ~/work/code-stats.nvim/code-stats.nvim/.luarocks \
assets/rockspecs/xml-1.1.3-1.rockspec
luarocks pack ./*.rockspec
luarocks build
luarocks pack code-stats.nvim
- uses: actions/upload-artifact@v4
if: "! startsWith(github.ref, 'refs/tags/')"
with:
path: |
*.rock
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
# body_path: build/CHANGELOG.md
files: |
*.rock
- name: Upload
# if: startsWith(github.ref, 'refs/tags/')
run: |
luarocks install luajson
luarocks upload --force --api-key ${{secrets.LUAROCKS_API_KEY}} \
./*.rockspec