forked from awslabs/amazon-eks-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (23 loc) · 814 Bytes
/
Copy pathdeploy-docs.yaml
File metadata and controls
23 lines (23 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Deploy documentation
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
mkdocs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # 6.0.0
with:
go-version: 'stable'
- run: |
pushd nodeadm && make wasm && popd
mkdir -p ./site/assets/wasm && cp ./nodeadm/_bin/nodeadm.wasm ./site/assets/wasm/
mkdir -p ./site/assets/javascripts && cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" ./site/assets/javascripts/
- run: pip install mkdocs mkdocs-material
# use the --dirty flag so that we dont purge our custom assets
- run: mkdocs gh-deploy --dirty --no-history --force