From 214b520be3288429c8994ef55a8d565af8a07930 Mon Sep 17 00:00:00 2001 From: db0 Date: Mon, 11 Dec 2023 12:35:35 +0100 Subject: [PATCH] ci: use another action --- .github/workflows/release_gen.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release_gen.yml b/.github/workflows/release_gen.yml index bc19f88..9c99ea1 100644 --- a/.github/workflows/release_gen.yml +++ b/.github/workflows/release_gen.yml @@ -1,8 +1,9 @@ name: Pythonseer build and publish via tag on: - release: - types: [ published ] + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" jobs: build-n-publish: @@ -10,12 +11,10 @@ jobs: 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/auto-generate-changelog@v1.2.5 with: @@ -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