Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Jul 5, 2024
1 parent 6dd4c9c commit 2bc660d
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@ on:

jobs:

Docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
uses: abatilo/actions-poetry@v3
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: poetry
- name: Build Docs
run: make docs
- name: Compress
run: tar -C docs/_build -czvf docs.tar.gz --transform s/^html/docs/ html/
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: docs.tar.gz
if-no-files-found: error

Build:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,10 +52,10 @@ jobs:
if-no-files-found: error

Publish:
needs: Build
needs: [Build, Docs]
runs-on: ubuntu-latest
steps:
- name: Download Artifact
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: dist
Expand All @@ -42,6 +65,11 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Download Documentation Artifact
uses: actions/download-artifact@v4
with:
name: docs
path: dist
- name: Upload to Release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 2bc660d

Please sign in to comment.