Skip to content

Deploy prototype unified site #88

Deploy prototype unified site

Deploy prototype unified site #88

Workflow file for this run

name: Deploy prototype unified site
on:
workflow_dispatch:
# Set permissions of the GITHUB_TOKEN to allow deployment to Github Pages
permissions:
contents: read
pages: write
id-token: write
env:
DOCS_DIR: base_site
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Pages
uses: actions/configure-pages@v3
- name: Build docs root landing Page
run: ./build_landing.sh
# Use a composite action to extract the docs one product at a time.
- name: Extract H-series docs
uses: ./.github/actions/extract-docs
with:
subdir: '${{ env.DOCS_DIR }}/h-series'
repo: 'CQCL/hseries-documentation'
tarball_prefix: 'hseries-docs'
token: ${{ secrets.HSERIES_DOCS_READ_ACCESS_TOKEN }}
- name: Extract Nexus docs
uses: ./.github/actions/extract-docs
with:
subdir: '${{ env.DOCS_DIR }}/nexus'
repo: 'CQCL-DEV/nexus-docs'
tarball_prefix: 'nexus-docs'
token: ${{ secrets.NEXUS_DOCS_READ_ACCESS_TOKEN }}
- name: Extract Inquanto docs
uses: ./.github/actions/extract-docs
with:
subdir: '${{ env.DOCS_DIR }}/inquanto'
repo: 'CQCL-DEV/inquanto-docs'
tarball_prefix: 'inquanto-docs'
token: ${{ secrets.INQUANTO_DOCS_READ_ACCESS_TOKEN }}
- name: Extract tket docs
uses: ./.github/actions/extract-docs
with:
subdir: '${{ env.DOCS_DIR }}/tket'
repo: 'CQCL-DEV/tket-site'
tarball_prefix: 'tket-docs'
token: ${{ secrets.TKET_DOCS_READ_ACCESS_TOKEN }}
- name: Extract Lambeq docs
uses: ./.github/actions/extract-docs
with:
subdir: '${{ env.DOCS_DIR }}/lambeq'
repo: 'CQCL/lambeq-docs'
tarball_prefix: 'lambeq-docs'
token: ${{ secrets.GITHUB_TOKEN }}
# Once they're all extracted, we can upload.
- name: Upload Github Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.DOCS_DIR }}
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4