-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1.2 KB
/
build.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
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
shared-key: "env-md"
key: env-md
- name: Install mdbook
run: cargo install mdbook
- name: Build book
run: mdbook build
- name: Edgeserver Upload
uses: v3xlabs/edgeserver-upload@v0.1.2-pre.4
with:
app_id: "406442149308010496"
server: https://api.edgeserver.io
token: ${{ secrets.SIGNAL_TOKEN }}
directory: book
- name: Edgeserver v0.2 Upload
uses: v3xlabs/edgeserver-upload@v0.2.0-pre.14
with:
site_id: s_fec5326acb
server: https://edgeserver.dev/api
token: ${{ secrets.EDGE_TOKEN }}
directory: book
context: true