Skip to content

Commit 3c89a74

Browse files
chore: separate workflow for semantic (#329)
1 parent 3e4919e commit 3c89a74

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,12 @@ jobs:
7171
path: ./wheelhouse/*.whl
7272

7373
release:
74-
if: ${{ github.ref == 'refs/heads/develop' }}
74+
if: startsWith(github.ref, 'refs/tags/')
7575
needs: build
7676
runs-on: ubuntu-latest
7777
environment: release
7878
permissions:
79-
contents: write # to be able to publish a GitHub release
80-
issues: write # to be able to comment on released issues
81-
pull-requests: write # to be able to comment on released pull requests
82-
id-token: write # to enable use of OIDC for npm provenance
79+
contents: write # grants permission to create a release on github
8380
steps:
8481
- uses: actions/checkout@v4
8582

@@ -93,21 +90,22 @@ jobs:
9390
merge-multiple: true
9491
pattern: wheels-*
9592

96-
- name: Github release
97-
uses: codfish/semantic-release-action@v3
98-
id: semantic
99-
env:
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101-
102-
- name: PyPI release
103-
if: steps.semantic.outputs.new-release-published == 'true'
93+
- name: Release PyPI
10494
run: |
10595
export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}"
10696
export UV_PUBLISH_USERNAME="__token__"
10797
uv publish --publish-url https://upload.pypi.org/legacy/
10898
99+
- name: Github release
100+
id: github-release
101+
uses: softprops/action-gh-release@v2
102+
with:
103+
files: dist/*
104+
fail_on_unmatched_files: true
105+
generate_release_notes: true
106+
109107
- uses: slackapi/[email protected]
110-
if: always() && steps.semantic.outputs.new-release-published == 'true'
108+
if: always()
111109
with:
112110
method: chat.postMessage
113111
token: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)