-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable GitHub Action workflow to build and deploy to LuaRocks (PR #97)
* Delete .travis.yml * Remove travis badge * Create build.yml and deploy.yml * update test.Dockerfile --------- Signed-off-by: Manoel Campos <[email protected]>
- Loading branch information
1 parent
7e36b2e
commit 84d73a7
Showing
5 changed files
with
48 additions
and
26 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,20 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ "master", "main" ] | ||
pull_request: | ||
branches: [ "master", "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
LUA_ROCKS_API_KEY: ${{ secrets.LUA_ROCKS_API_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build the Docker image | ||
run: docker-compose build test | ||
- name: Run tests | ||
run: docker-compose run --rm test |
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,25 @@ | ||
name: deploy | ||
|
||
# How to fire this workflow | ||
## After you are ready to deploy your rock, you need create a git tag in the format vX.Y-Z | ||
## git tag vX.Y-Z && git push --tags | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*-*' | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
deploy: | ||
name: Deploy rock to luarocks.org | ||
needs: [ build ] # build must pass to deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Deploy to luarocks.org | ||
run: docker-compose build upload | ||
env: | ||
LUA_ROCKS_API_KEY: ${{ secrets.LUA_ROCKS_API_KEY }} |
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
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