Skip to content

Commit

Permalink
fix publish arg, only publish when tests succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinKa committed Sep 28, 2023
1 parent 0031b6e commit 5346a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
FORCE_COLOR: 1

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
Expand All @@ -37,6 +37,7 @@ jobs:
run: earthly +test-examples
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: earthly/actions-setup@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ test-examples:
publish:
FROM +build

ARG --required REPOSITORY

RUN poetry config repositories.pypi https://upload.pypi.org/legacy/
RUN poetry config repositories.testpypi https://test.pypi.org/legacy/

Expand Down

0 comments on commit 5346a7c

Please sign in to comment.