-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add smoke test to CI test action and added new release action
- Loading branch information
Showing
7 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release Rock | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Trigger for version tags | ||
|
||
jobs: | ||
build_and_release: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@main | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Set up Lua and Luarocks | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: '5.4.7' | ||
- uses: leafo/gh-actions-luarocks@v4 | ||
with: | ||
luarocksVersion: "3.11.1" | ||
- name: Build rockspec files | ||
run: | | ||
make pack # Generates *.rock and *.scm.rock | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add *.rockspec *.rock | ||
git commit -m "Add rockspec files for release ${GITHUB_REF##*/}" | ||
git push | ||
- name: Publish to LuaRocks | ||
env: | ||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} | ||
run: | | ||
luarocks upload --temp-key="${LUAROCKS_API_KEY}" *.rock *.src.rock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Ignore all files | ||
* | ||
|
||
# Exclude the following files | ||
!/kong/ | ||
!/README.md | ||
!/LICENSE | ||
!/kong-plugin-kong-authz-openfga-*.rockspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters