-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Set up dev and tag luarocks release workflow
- Loading branch information
1 parent
4616941
commit b14b5d5
Showing
5 changed files
with
55 additions
and
57 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
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
name: Push release to Luarocks | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
release: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
get_version: | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
outputs: | ||
luarocks_version: ${{ steps.get_version_value.outputs.LUAROCKS_VERSION }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Required to count the commits | ||
- name: Get Version | ||
id: get_version_value | ||
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT | ||
luarocks-upload: | ||
needs: get_version | ||
uses: ./.github/workflows/luarocks.yml | ||
with: | ||
luarocks_version: ${{ needs.get_version.outputs.luarocks_version }} |
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,16 @@ | ||
name: Push dev to Luarocks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
luarocks-upload-dev: | ||
needs: tests | ||
uses: ./.github/workflows/luarocks.yml | ||
with: | ||
luarocks_version: dev |
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_call: | ||
|
||
env: | ||
CI: true | ||
|