Skip to content

Commit

Permalink
fix: CI publish (#13)
Browse files Browse the repository at this point in the history
* fix: pypi publish

* permissions

* tag
  • Loading branch information
db0 committed Dec 11, 2023
1 parent fcf18e6 commit 66141b9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pythonseer build and publish
name: Pythonseer build and publish via label

on:
push:
Expand Down
43 changes: 29 additions & 14 deletions .github/workflows/release_gen.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
name: Release
name: Pythonseer build and publish via tag

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: BobAnkh/auto-generate-changelog@v1.2.5
with:
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
generateReleaseNotes: true
build-n-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "✔️ Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "✏️ Generate release changelog"
uses: BobAnkh/auto-generate-changelog@v1.2.5
with:
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
generateReleaseNotes: true
- name: "🛠 Install and publish with poetry"
run: |
make setup
poetry build
poetry publish
- name: "🤖 Announce on lemmy.dbzer0.com"
run: |
python -m pip install pythorhead
python .github/workflows/publish_on_lemmy.py ${{ env.RELEASE_VERSION }}
env:
LEMMY_BOT_PASSWORD: ${{ secrets.LEMMY_BOT_PASSWORD }}

0 comments on commit 66141b9

Please sign in to comment.