Skip to content

Commit 575d899

Browse files
authored
release to github (#120)
1 parent 0d05f29 commit 575d899

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release to PyPI
1+
name: Release to PyPI and GitHub
22

33
on:
44
push:
@@ -8,6 +8,8 @@ jobs:
88
build-and-publish:
99
runs-on: ubuntu-latest
1010
environment: pypi-publish
11+
permissions:
12+
contents: write
1113
strategy:
1214
matrix:
1315
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -23,7 +25,7 @@ jobs:
2325
run: |
2426
python -m pip install . --upgrade build twine
2527
26-
- name: Install clusterscope
28+
- name: Build package
2729
run: |
2830
python -m build
2931
@@ -32,3 +34,14 @@ jobs:
3234
TWINE_USERNAME: __token__
3335
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3436
run: twine upload --skip-existing dist/*
37+
38+
- name: Create GitHub Release
39+
if: matrix.python-version == '3.11'
40+
uses: softprops/action-gh-release@v2
41+
with:
42+
name: Release ${{ github.ref_name }}
43+
draft: false
44+
prerelease: false
45+
files: |
46+
dist/*
47+
generate_release_notes: true

0 commit comments

Comments
 (0)