Skip to content

Commit efb45aa

Browse files
committed
ci: fix pypi steps
1 parent 90e5ab9 commit efb45aa

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
@@ -52,6 +52,11 @@ jobs:
5252
- build
5353
- pre-commit
5454
runs-on: ubuntu-latest
55+
environment:
56+
name: testpypi
57+
url: https://test.pypi.org/p/OctoPrint-FirmwareCheck
58+
permissions:
59+
id-token: write
5560
steps:
5661
- name: ⬇ Download build result
5762
uses: actions/download-artifact@v3
@@ -61,13 +66,18 @@ jobs:
6166
- name: 📦 Publish to index
6267
uses: pypa/gh-action-pypi-publish@release/v1
6368
with:
64-
repository_url: https://test.pypi.org/legacy/
69+
repository-url: https://test.pypi.org/legacy/
6570

6671
publish-on-pypi:
6772
name: 📦 Publish tagged releases to PyPI
6873
if: github.event_name == 'release'
6974
needs: publish-on-testpypi
7075
runs-on: ubuntu-latest
76+
environment:
77+
name: pypi
78+
url: https://pypi.org/p/OctoPrint-FirmwareCheck
79+
permissions:
80+
id-token: write
7181
steps:
7282
- name: ⬇ Download build result
7383
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)