-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (71 loc) · 2.39 KB
/
deploy_site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 }}
- name: Cypress Tests
run: |
npm install
npx serve base_site & npm run test
# 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