Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Manoel Campos <[email protected]>
  • Loading branch information
manoelcampos committed May 7, 2024
1 parent c8a93ad commit 054dea3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
- name: Build the Docker test image
run: docker-compose build test
- name: Run tests
run: docker-compose run --rm test
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
uses: ./.github/workflows/build.yml
deploy:
name: Deploy rock to luarocks.org
env:
LUA_ROCKS_API_KEY: ${{ secrets.LUA_ROCKS_API_KEY }}
needs: [ build ] # build must pass to deploy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Deploy to luarocks.org
- name: Build the Docker luarocks upload image
run: docker-compose build upload
env:
LUA_ROCKS_API_KEY: ${{ secrets.LUA_ROCKS_API_KEY }}
- name: Deploy to luarocks.org
run: docker-compose run --rm upload

0 comments on commit 054dea3

Please sign in to comment.