forked from ProvableHQ/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.49 KB
/
staging-website.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Staging Website Deploy
on:
push:
branches:
- staging
jobs:
deploy:
name: SDK Website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# with:
# persist-credentials: false
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-24
override: true
components: rustfmt, rust-src
- uses: jetli/wasm-pack-action@v0.3.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-website-${{ hashFiles('**/Cargo.lock') }}
- name: Install and Build
run: |
rustup component add rust-src
cd website
npm install
npm run build
env:
CI: ""
- name: Deploy
id: modified
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: staging.aleo.tools
folder: website/dist
clean-exclude: '["dev"]'
- name: Check step output
run: |
[[ \
${{steps.modified.outputs.deployment-status}} = skipped || \
${{steps.modified.outputs.deployment-status}} = success \
]]