Skip to content

Commit

Permalink
ci: use another action
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Dec 11, 2023
1 parent 0dbabfa commit 214b520
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release_gen.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Pythonseer build and publish via tag

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

jobs:
build-n-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "📦 Publish distribution to PyPI"
uses: code-specialist/pypi-poetry-publish@v1
- name: "✔️ Checkout"
uses: actions/checkout@v3
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
BRANCH: main
fetch-depth: 0
- name: "✏️ Generate release changelog"
uses: BobAnkh/[email protected]
with:
Expand All @@ -24,6 +23,10 @@ jobs:
with:
allowUpdates: true
generateReleaseNotes: true
- name: "🛠 Install and publish with poetry"
uses: JRubics/poetry-publish@v1
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
- name: "🤖 Announce on lemmy.dbzer0.com"
run: |
python -m pip install pythorhead
Expand Down

0 comments on commit 214b520

Please sign in to comment.