File tree Expand file tree Collapse file tree 2 files changed +30
-15
lines changed Expand file tree Collapse file tree 2 files changed +30
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Pythonseer build and publish
1
+ name : Pythonseer build and publish via label
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : Pythonseer build and publish via tag
2
2
3
3
on :
4
4
push :
5
5
tags :
6
6
- " v[0-9]+.[0-9]+.[0-9]+"
7
7
8
8
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 }}
You can’t perform that action at this time.
0 commit comments