tests - fix actions upload/download - part 3 cuz i am not paying atte… #279
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: Publish GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
gh-pages-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3.5.0 | |
with: | |
persist-credentials: false | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install tox 🧰 | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Generate HTML 🛠 | |
run: tox -e docs | |
- name: Upload Site 🔺 | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: pdoc3-html | |
path: pdoc3-html/ploigos_step_runner | |
gh-pages-deploy: | |
needs: | |
- gh-pages-build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3.5.0 | |
- name: Download Site 🔻 | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
name: pdoc3-html | |
path: pdoc3-html/ | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4.6.4 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: "pdoc3-html" |