Skip to content

Commit

Permalink
Separate job for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jochym committed Dec 7, 2024
1 parent 385d1ff commit 88e1258
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:
- main

jobs:
build:
uses: ./.github/workflows/build.yml

publish-to-pypi:
name: Publish to PyPI
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
uses: ./.github/workflows/build.yml
needs:
- build
runs-on: ubuntu-latest

environment:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ on:
- dev

jobs:
build:
uses: ./.github/workflows/build.yml

publish-to-testpypi:
name: Publish to TestPyPI
# Only on dev pushes
# if: ${{ github.event_name == 'push' && ( github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master' ) }}
# Run on untagged push
# if: ${{ !startsWith(github.ref, 'refs/tags/') }}
# if: ${{ github.ref == 'refs/heads/dev' }}
uses: ./.github/workflows/build.yml
needs:
- build
runs-on: ubuntu-latest

environment:
Expand Down

0 comments on commit 88e1258

Please sign in to comment.