Skip to content

Commit 639cb8e

Browse files
committed
ci: fix pypi steps
1 parent 51adf51 commit 639cb8e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
- pre-commit
7474
- test-unit
7575
runs-on: ubuntu-latest
76+
environment:
77+
name: testpypi
78+
url: https://test.pypi.org/p/OctoPrint-PiSupport
79+
permissions:
80+
id-token: write
7681
steps:
7782
- name: ⬇ Download build result
7883
uses: actions/download-artifact@v3
@@ -82,13 +87,18 @@ jobs:
8287
- name: 📦 Publish to index
8388
uses: pypa/gh-action-pypi-publish@release/v1
8489
with:
85-
repository_url: https://test.pypi.org/legacy/
90+
repository-url: https://test.pypi.org/legacy/
8691

8792
publish-on-pypi:
8893
name: 📦 Publish tagged releases to PyPI
8994
if: github.event_name == 'release'
9095
needs: publish-on-testpypi
9196
runs-on: ubuntu-latest
97+
environment:
98+
name: pypi
99+
url: https://test.pypi.org/p/OctoPrint-PiSupport
100+
permissions:
101+
id-token: write
92102
steps:
93103
- name: ⬇ Download build result
94104
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)