Skip to content

Commit 25c0b33

Browse files
committed
update github actions
1 parent 0894248 commit 25c0b33

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@ on:
77
branches: [main]
88

99
permissions:
10+
id-token: write
1011
contents: write
1112

1213
jobs:
1314
deploy:
1415
runs-on: ubuntu-latest
1516

1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1819
- run: git fetch --depth=1 origin '+refs/tags/*:refs/tags/*'
1920
if: github.event_name == 'push'
2021
continue-on-error: true
2122
- name: Set up Python
22-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2324
with:
2425
python-version: '3.12'
2526
- name: Install dependencies
@@ -40,15 +41,11 @@ jobs:
4041
run: pytest -vs -k community
4142
- name: Build package
4243
run: python -m build
43-
- name: Publish package
44-
env:
45-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
46-
if: ${{ env.PYPI_API_TOKEN != '' }}
47-
uses: pypa/gh-action-pypi-publish@release/v1.5
44+
- name: Publish release distributions to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1
4846
with:
49-
user: __token__
50-
password: ${{ env.PYPI_API_TOKEN }}
51-
- uses: actions/checkout@v3
47+
packages-dir: dist/
48+
- uses: actions/checkout@v4
5249
if: github.event_name == 'release'
5350
with:
5451
ref: main

0 commit comments

Comments
 (0)