-
Notifications
You must be signed in to change notification settings - Fork 45
43 lines (38 loc) · 1.18 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
name: Deploy docs
on:
push:
branches: [ develop ]
jobs:
docs:
permissions:
contents: write
id-token: write
runs-on: mangata-node-e2e-runners
container:
image: mangatasolutions/node-builder:multi-nightly-2022-11-21
steps:
- uses: actions/checkout@v3
- uses: google-github-actions/auth@v1
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