-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (34 loc) · 1.1 KB
/
doc.yaml
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
name: Docs
on:
push:
branches: [main]
env:
BUILDER_THREADS: '1'
RUSTUP_TOOLCHAIN: nightly
jobs:
doc:
runs-on: ubuntu-latest
# This will ensure at most one doc build job is running at a time
# If another job is already running, the new job will wait.
# If another job is already waiting, it'll be canceled.
# This means some commits will be skipped, but that's fine because
# we only care that the latest gets built.
concurrency: doc
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install docserver
run: |
wget -q -O /usr/local/bin/builder "https://github.com/embassy-rs/docserver/releases/download/v0.4/builder"
chmod +x /usr/local/bin/builder
- name: build
run: |
mkdir crates
builder . crates/rp-pac/git.zup
- name: upload
run: |
mkdir -p ~/.kube
echo "${{secrets.KUBECONFIG}}" > ~/.kube/config
POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name})
kubectl cp crates $POD:/data