-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 991 Bytes
/
auto-deploy.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
name: Build and Deploy
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: "hecrj/setup-rust-action@v1"
with:
rust-version: stable
- name: Install the web target
run: "rustup target add wasm32-unknown-unknown"
- name: Install Linux dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y libudev-dev zlib1g-dev alsa libasound2-dev
- name: Add cargo web
run: cargo install cargo-web
- name: Checkout
uses: actions/checkout@master
- name: Remove develop.rs
run: rm ./src/bin/develop.rs
- name: Build
run: cargo web deploy --release
- name: deploy
uses: peaceiris/[email protected]
env:
PERSONAL_TOKEN: ${{ secrets.AUTH_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./target/deploy