-
-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (36 loc) · 1.14 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
48
49
50
name: Publish Docs
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-22.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: make build
- name: Build Examples
run: make examples
- name: Build Tutorial
run: make tutorial
- name: Build OpenNGC Data Reference
run: make scripts SCRIPT=ongc_docdata
- name: Build Docs
run: make docs-build
- name: Set Version Environment Variable
run: |
echo "STARPLOT_VERSION=$(make version)" >> "$GITHUB_ENV"
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: 'Set up Google Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
- name: 'Sync docs to [primary] Cloud Storage Bucket'
run: 'gsutil -m rsync -R -d site gs://starplot.dev'
- name: 'Sync docs to [archives] Cloud Storage Bucket'
run: 'gsutil -m rsync -R -d site gs://archives.starplot.dev/$STARPLOT_VERSION'