fix: CI publish (#13) #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pythonseer build and publish via tag | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
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/[email protected] | |
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 }} |