Skip to content

Commit f799dec

Browse files
committed
ci: fix pypi publishing job
1 parent ce63891 commit f799dec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
- pre-commit
7474
- e2e
7575
runs-on: ubuntu-latest
76+
permissions:
77+
id-token: write
78+
environment:
79+
name: testpypi
80+
url: https://test.pypi.org/p/OctoPrint-FileCheck
7681
steps:
7782
- name: ⬇ Download build result
7883
uses: actions/download-artifact@v4
@@ -89,6 +94,11 @@ jobs:
8994
if: github.event_name == 'release'
9095
needs: publish-on-testpypi
9196
runs-on: ubuntu-latest
97+
permissions:
98+
id-token: write
99+
environment:
100+
name: pypi
101+
url: https://pypi.org/p/OctoPrint-FileCheck
92102
steps:
93103
- name: ⬇ Download build result
94104
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)