Skip to content

Commit 7042200

Browse files
committed
ci: Added workflows
1 parent 381406b commit 7042200

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

.github/workflows/luarocks.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Luarocks
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
release:
8+
types:
9+
- created
10+
pull_request: # Tests packaging on PR
11+
workflow_dispatch:
12+
13+
jobs:
14+
luarocks-upload:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Required to get the tags
20+
- name: Get Version
21+
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
22+
23+
# Needed to build the tree-sitter parser dependencies
24+
- name: Install C/C++ Compiler
25+
uses: rlalik/setup-cpp-compiler@master
26+
with:
27+
compiler: clang-latest
28+
- name: Install tree-sitter CLI
29+
uses: baptiste0928/cargo-install@v3
30+
with:
31+
crate: tree-sitter-cli
32+
33+
- name: LuaRocks Upload
34+
uses: nvim-neorocks/luarocks-tag-release@v7
35+
env:
36+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
37+
with:
38+
version: ${{ env.LUAROCKS_VERSION }}
39+
dependencies: |
40+
tree-sitter-regex
41+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# vim:nospell:
2+
name: Release Please
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
# this assumes that you have created a personal access token
20+
# (PAT) and configured it as a GitHub action secret named
21+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
22+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
23+
# this is a built-in strategy in release-please, see "Action Inputs"
24+
# for more options
25+
26+
release-type: simple

0 commit comments

Comments
 (0)