tests - fix actions upload/download #277
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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
- name: Download Site 🔻 | |
uses: actions/[email protected] | |
with: | |
name: pdoc3-html | |
path: pdoc3-html/ | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: "pdoc3-html" |