Skip to content

Commit 214b520

Browse files
committed
ci: use another action
1 parent 0dbabfa commit 214b520

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/release_gen.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
name: Pythonseer build and publish via tag
22

33
on:
4-
release:
5-
types: [ published ]
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
67

78
jobs:
89
build-n-publish:
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: write
1213
steps:
13-
- name: "📦 Publish distribution to PyPI"
14-
uses: code-specialist/pypi-poetry-publish@v1
14+
- name: "✔️ Checkout"
15+
uses: actions/checkout@v3
1516
with:
16-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
18-
BRANCH: main
17+
fetch-depth: 0
1918
- name: "✏️ Generate release changelog"
2019
uses: BobAnkh/auto-generate-changelog@v1.2.5
2120
with:
@@ -24,6 +23,10 @@ jobs:
2423
with:
2524
allowUpdates: true
2625
generateReleaseNotes: true
26+
- name: "🛠 Install and publish with poetry"
27+
uses: JRubics/poetry-publish@v1
28+
with:
29+
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
2730
- name: "🤖 Announce on lemmy.dbzer0.com"
2831
run: |
2932
python -m pip install pythorhead

0 commit comments

Comments
 (0)