Skip to content

Deploy from 2.0 branch, remove main #96

Deploy from 2.0 branch, remove main

Deploy from 2.0 branch, remove main #96

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- '1.0'
- '2.0'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement ./requirements.txt
- name: Build Multiversion Docs
run: |
git fetch --all
git checkout 1.0
git checkout 2.0 # branch to deploy from
cd docs
make multiversion
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}