Skip to content

Commit

Permalink
ci: fix pypi steps
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Nov 12, 2024
1 parent 90e5ab9 commit efb45aa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
- build
- pre-commit
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/OctoPrint-FirmwareCheck
permissions:
id-token: write
steps:
- name: ⬇ Download build result
uses: actions/download-artifact@v3
Expand All @@ -61,13 +66,18 @@ jobs:
- name: 📦 Publish to index
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

publish-on-pypi:
name: 📦 Publish tagged releases to PyPI
if: github.event_name == 'release'
needs: publish-on-testpypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/OctoPrint-FirmwareCheck
permissions:
id-token: write
steps:
- name: ⬇ Download build result
uses: actions/download-artifact@v3
Expand Down

0 comments on commit efb45aa

Please sign in to comment.