-
Notifications
You must be signed in to change notification settings - Fork 907
47 lines (43 loc) · 1.2 KB
/
docs.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
name: Docs
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
FLWR_TELEMETRY_ENABLED: 0
jobs:
build_docs:
runs-on: ubuntu-22.04
name: Build
steps:
- uses: actions/checkout@v3
- name: Bootstrap
uses: ./.github/actions/bootstrap
- name: Install pandoc
run: sudo apt install pandoc
- name: Install dependencies (mandatory only)
run: python -m poetry install --extras "simulation"
- name: Build docs
run: ./dev/build-docs.sh
deploy_docs:
needs: build_docs
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Bootstrap
uses: ./.github/actions/bootstrap
- name: Install pandoc
run: sudo apt install pandoc
- name: Install dependencies (mandatory only)
run: python -m poetry install --extras "simulation"
- name: Build and deploy docs
env:
AWS_DEFAULT_REGION: ${{ secrets. AWS_DEFAULT_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }}
run: ./dev/deploy-docs.sh