Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI publish #13

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .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 Expand Up @@ -66,6 +66,6 @@ jobs:
if: ${{ steps.release.outputs.version != '' }}
run: |
python -m pip install pythorhead
python .github/publish_on_lemmy.py ${{ steps.release.outputs.version }}
python .github/workflows/publish_on_lemmy.py ${{ steps.release.outputs.version }}
env:
LEMMY_BOT_PASSWORD: ${{ secrets.LEMMY_BOT_PASSWORD }}
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 }}
Loading