Skip to content

Commit

Permalink
fix: typo on publish protections
Browse files Browse the repository at this point in the history
  • Loading branch information
duttonw committed Nov 25, 2024
1 parent 531465a commit 2ba760c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,14 @@ jobs:
echo "url=${url}" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
timeout-minutes: 2

- uses: actions/setup-python@v5
timeout-minutes: 2
with:
python-version: '3.x'

- name: Validate tag version
if: ${{ startsWith(github.ref, 'refs/tags') }}
Expand All @@ -139,6 +145,8 @@ jobs:
- name: Build package ${{ steps.version.outputs.reponame }} @ ${{ steps.version.outputs.version }}
run: |
pip install build
pip install twine
python -m build
- name: Publish package distributions to PyPI
if: ${{ startsWith(github.ref, 'refs/tags') && steps.version.outputs.environment == 'pypi' && github.event.inputs.dryRun != 'true' }}
Expand Down

0 comments on commit 2ba760c

Please sign in to comment.