-
-
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 (#801)
- Loading branch information
1 parent
4616941
commit 5f25f6d
Showing
5 changed files
with
56 additions
and
58 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 | ||
version: | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
outputs: | ||
luarocks_version: ${{ steps.get_version.outputs.LUAROCKS_VERSION }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Required to count the commits | ||
- name: Get Version | ||
id: get_version | ||
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT | ||
luarocks: | ||
needs: version | ||
uses: ./.github/workflows/luarocks.yml | ||
with: | ||
luarocks_version: ${{ needs.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: dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: # Luarocks upload only tests installation | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
luarocks_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 | ||
|