-
Notifications
You must be signed in to change notification settings - Fork 92
43 lines (41 loc) · 1.28 KB
/
updateReferenceDocs.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
name: Update Reference Docs
on:
workflow_dispatch:
jobs:
update:
name: Update Reference Docs
runs-on: [self-hosted, referenceDocs]
timeout-minutes: 10000
steps:
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Check out repository code
uses: actions/checkout@v2
- run: |
gcloud components install beta
- uses: actions/setup-node@v2
with:
node-version: '15'
- name: Download Latest OpenCascade.js Release
run: |
cd dist
npm view opencascade.js@beta dist.tarball | xargs curl | tar -xz
cd package
mv dist/* ../
cd ..
rm package -r
cd ..
- name: Update Reference Docs
timeout-minutes: 10000
run: |
apt-get update
apt-get install -y zip
cd typedoc-reference-docs
npm ci && npm run build -- --out ./reference-docs
zip -r reference-docs.zip ./reference-docs
gsutil cp ./reference-docs.zip gs://opencascade-js/reference-docs.zip
rm ./reference-docs.zip