Skip to content

Commit c975138

Browse files
authored
Update release workflow with new features and permissions
1 parent b56c100 commit c975138

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
jobs:
89
build_wheel_and_sdist:
@@ -28,18 +29,25 @@ jobs:
2829
upload_pypi:
2930
needs: build_wheel_and_sdist
3031
runs-on: ubuntu-latest
32+
environment:
33+
name: pypi
34+
url: https://pypi.org/p/python-binexport
35+
permissions:
36+
id-token: write
3137
steps:
3238
- uses: actions/download-artifact@v8
3339
with:
3440
# unpacks default artifact into dist/
3541
# if `name: artifact` is omitted, the action will create extra parent dir
36-
name: artifact
42+
pattern: artifact_*
43+
merge-multiple: true
3744
path: dist
3845

3946
- name: Publish a Python distribution to PyPI
40-
uses: pypa/gh-action-pypi-publish@v1.14.0
47+
uses: pypa/gh-action-pypi-publish@release/v1
4148
with:
42-
password: ${{ secrets.PYPI_DEPLOY_TOKEN }}
49+
packages-dir: ./dist/
50+
attestations: true
4351

4452
- name: Upload Python packages for release notes
4553
uses: softprops/action-gh-release@v3.0.0

0 commit comments

Comments
 (0)