Skip to content

Commit 27a2963

Browse files
committed
cd: Fix signing and release creation
1 parent dc37778 commit 27a2963

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,11 @@ jobs:
2525
runner: ${{ matrix.os }}
2626
python-version: ${{ matrix.python-version }}
2727

28-
build-sdist:
29-
runs-on: ${{ matrix.os }}
30-
strategy:
31-
fail-fast: false
32-
matrix:
33-
os: [ ubuntu-latest ]
34-
python-version: [ "3.9" ]
35-
steps:
36-
- uses: actions/checkout@v4
37-
- uses: ./.github/actions/bootstrap-environ
38-
id: bootstrap-environ
39-
with:
40-
python-version: ${{ matrix.python-version }}
41-
runner: ${{ matrix.os }}
42-
4328
publish-to-pypi:
4429
name: >-
4530
Publish Python 🐍 distribution 📦 to PyPI
4631
needs:
4732
- build-wheels
48-
- build-sdist
4933
runs-on: ubuntu-latest
5034
environment:
5135
name: pypi
@@ -104,8 +88,16 @@ jobs:
10488
merge-multiple: true
10589
path: dist
10690
- name: Sign the dists with Sigstore
107-
uses: sigstore/gh-action-sigstore-python@v2.1.1
91+
uses: sigstore/gh-action-sigstore-python@v3.0.0
10892
with:
10993
inputs: >-
11094
./dist/*.tar.gz
11195
./dist/*.whl
96+
- name: Create GitHub Release
97+
uses: softprops/action-gh-release@v2
98+
with:
99+
body_path: release-notes.md
100+
tag_name: ${{ github.env.RELEASE_VERSION }}
101+
target_commitish: ${{ github.env.TARGET_COMMITISH }}
102+
make_latest: true
103+
files: dist/*

0 commit comments

Comments
 (0)