-
Notifications
You must be signed in to change notification settings - Fork 45
44 lines (39 loc) · 1.23 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
name: Deploy docs
on:
push:
# TODO: temporary for test - to be removed
branches: [develop, ci/workflow-fixes]
jobs:
docs:
permissions:
contents: write
id-token: write
runs-on: [compile-gke]
container:
image: mangatasolutions/node-builder:multi-nightly-2023-05-22
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}'
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
- name: Cache the Cargo dependencies
uses: mansagroup/[email protected]
with:
bucket: mangata-node-ci-cache
path: |
${{ github.workspace }}/target
/usr/local/cargo/git
/usr/local/cargo/registry
~/.cache/sccache
key: node-docs-cache-1-${{ hashFiles('Cargo.lock') }}
- name: Build docs
run: cargo doc
- name: Deploy to GCP
uses: google-github-actions/[email protected]
with:
path: ./target/doc/
destination: mangata-docs-node
parent: false
concurrency: 50
process_gcloudignore: false