-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 856 Bytes
/
build-deploy.yml
File metadata and controls
34 lines (33 loc) · 856 Bytes
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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install trunk
uses: actions-rs/install@v0.1
with:
crate: trunk
version: latest
use-tool-cache: true
- name: Build
run: |
chmod +x ./update-gh-pages.sh
./update-gh-pages.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs