Skip to content

Commit 5495e7b

Browse files
committed
Attempt to use trusted publisher
1 parent 90535ac commit 5495e7b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: Publish to PyPI
22

33
on:
44
workflow_call:
5-
secrets:
6-
PYPI_API_TOKEN:
7-
required: true
85

96
jobs:
107
publish:
118
name: Publish to PyPI
129
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/paradox-alarm-interface
13+
permissions:
14+
id-token: write
1315
steps:
1416
- uses: actions/checkout@v4
1517
- name: Set up Python
@@ -24,6 +26,3 @@ jobs:
2426
run: python -m build
2527
- name: Publish package
2628
uses: pypa/gh-action-pypi-publish@release/v1
27-
with:
28-
user: __token__
29-
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ jobs:
2121
uses: ./.github/workflows/publish_pypi.yml
2222
needs: test
2323
if: github.repository == 'ParadoxAlarmInterface/pai'
24-
secrets:
25-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)