Skip to content

Commit 35fa1ba

Browse files
committed
Update release workflow
1 parent 1b20f31 commit 35fa1ba

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Publish umbi to PyPI
22

33
on:
44
push:
@@ -7,18 +7,19 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
release:
10+
build-and-publish:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write # Required for OIDC!
14+
contents: read
15+
1216
steps:
13-
- name: Checkout source
14-
uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
17+
- uses: actions/checkout@v4
1718

1819
- name: Set up Python
1920
uses: actions/setup-python@v5
2021
with:
21-
python-version: '3.x'
22+
python-version: '3.11'
2223

2324
- name: Install build dependencies
2425
run: |
@@ -30,5 +31,3 @@ jobs:
3031

3132
- name: Publish to PyPI
3233
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)