-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.25 KB
/
build.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
name: build
on:
push:
branches: ["test-ci", "main", "test-ci2"]
jobs:
build-docs:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
container: riot/riotbuild
steps:
- name: Check out rust-documentation-builder
uses: actions/checkout@v4
- name: Run `make build-from-checkout`
# Note that this runs the RIOT checkout internally, both to reduce
# dependencies on GitHub actions and to gain the flexibility on running
# with different sources with the same ease locally and in CI.
run: |
pwd
ls -la
sh ./build-with-checkouts.sh
find bin -name 'index.html'
- name: Create artifact of built documentation
uses: actions/upload-artifact@v4
with:
name: rustdoc
path: bin/nrf52840dongle/target/thumbv7em-none-eabihf/doc/
- name: Upload generated documentation
run: |
mkdir ~/.ssh -m 0700
echo "${SECRET_KEY}" > ~/.ssh/id_ed25519
chmod go-rwx ~/.ssh/id_ed25519
rsync -e 'ssh -p${SECRET_PORT}' -vaP --delete bin/${BOARD}/target/${RUST_TARGET}/doc/* [email protected]:/var/www/doc.riot-os.org_rustdoc/latest/