Skip to content

Commit 66141b9

Browse files
author
Divided by Zer0
authored
fix: CI publish (#13)
* fix: pypi publish * permissions * tag
1 parent fcf18e6 commit 66141b9

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pythonseer build and publish
1+
name: Pythonseer build and publish via label
22

33
on:
44
push:

.github/workflows/release_gen.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
1-
name: Release
1+
name: Pythonseer build and publish via tag
22

33
on:
44
push:
55
tags:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: BobAnkh/auto-generate-changelog@v1.2.5
16-
with:
17-
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
18-
- uses: ncipollo/release-action@v1
19-
with:
20-
allowUpdates: true
21-
generateReleaseNotes: true
9+
build-n-publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: "✔️ Checkout"
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: "✏️ Generate release changelog"
19+
uses: BobAnkh/auto-generate-changelog@v1.2.5
20+
with:
21+
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
- uses: ncipollo/release-action@v1
23+
with:
24+
allowUpdates: true
25+
generateReleaseNotes: true
26+
- name: "🛠 Install and publish with poetry"
27+
run: |
28+
make setup
29+
poetry build
30+
poetry publish
31+
- name: "🤖 Announce on lemmy.dbzer0.com"
32+
run: |
33+
python -m pip install pythorhead
34+
python .github/workflows/publish_on_lemmy.py ${{ env.RELEASE_VERSION }}
35+
env:
36+
LEMMY_BOT_PASSWORD: ${{ secrets.LEMMY_BOT_PASSWORD }}

0 commit comments

Comments
 (0)