Skip to content

Commit 11e3266

Browse files
authored
Use PyPI trusted publishing
1 parent 7804263 commit 11e3266

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/poll_and_publish.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
schedule:
55
# Runs at 05:00 UTC every day
66
- cron: '0 5 * * *'
7-
workflow_dispatch: # allow for manual trigger
7+
workflow_dispatch: # allow manual trigger
88

99
jobs:
1010
polling_amdsmi:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
1214
steps:
1315
- name: Checkout repository
1416
uses: actions/checkout@v3
@@ -26,10 +28,7 @@ jobs:
2628
with:
2729
python-version: '3.9'
2830

29-
- name: Fix and publish, iff there exists a tag in rocm/amdsmi that is not here.
30-
env:
31-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
32-
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
31+
- name: Fix and publish, iff there exists a tag in rocm/amdsmi that is not here
3332
run: |
3433
chmod +x ./scripts/checkout_and_push_tag.sh
35-
./scripts/checkout_and_push_tag.sh
34+
./scripts/checkout_and_push_tag.sh

0 commit comments

Comments
 (0)