Skip to content

Commit 6af5f36

Browse files
authored
feat: test release for new python-semantic-release process (#159)
Just upgrading to stay current. Need to use "feat" to trigger a release. Docs: - https://python-semantic-release.readthedocs.io/en/latest/migrating_from_v7.html - https://github.com/pypa/gh-action-pypi-publish#usage
1 parent 7d439b6 commit 6af5f36

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,31 @@ on:
99
jobs:
1010
release:
1111
runs-on: ubuntu-latest
12-
environment: release
12+
concurrency: release
13+
permissions:
14+
id-token: write
15+
1316
steps:
1417
- uses: actions/checkout@v3
1518
with:
1619
fetch-depth: 0
1720
- name: Python Semantic Release
21+
id: release
1822
# https://github.com/relekang/python-semantic-release/releases
19-
uses: relekang/python-semantic-release@v7.32.2
23+
uses: relekang/python-semantic-release@v8.0.7
2024
with:
2125
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Publish package distributions to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1
29+
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
30+
# See https://github.com/actions/runner/issues/1173
31+
if: steps.release.outputs.released == 'true'
32+
with:
2233
pypi_token: ${{ secrets.PYPI_TOKEN }}
34+
35+
- name: Publish package distributions to GitHub Releases
36+
uses: python-semantic-release/upload-to-gh-release@main
37+
if: steps.release.outputs.released == 'true'
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)