Trigger deploy (#143)

This commit is contained in:
Yohan Boogaert 2022-06-27 22:44:42 +02:00 committed by GitHub
parent a6725990de
commit 9407209aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 29 deletions

View file

@ -1,4 +1,4 @@
name: Main Workflow
name: Main
on:
push:
@ -16,13 +16,3 @@ jobs:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- run: cargo test --workspace --all-features --verbose
site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo doc --verbose --workspace --all-features --no-deps
- name: Build (Release)
run: "cargo xtask dist --release"
- name: Move doc to build/api
run: mv ./target/doc ./target/release/dist/api

View file

@ -1,4 +1,4 @@
name: PR Workflow
name: PR
on:
pull_request:
@ -8,22 +8,13 @@ env:
CARGO_TERM_COLOR: always
jobs:
build:
checks:
runs-on: ubuntu-latest
outputs:
size: ${{ steps.build.outputs.size }}
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- run: cargo test --workspace --all-features --verbose
- name: Build (Release)
id: build
run: "cargo xtask dist --release && echo ::set-output name=size::`cat target/release/dist/app.wasm | wc -c`"
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup install --profile default nightly
# NOTE: we use nightly here to enable the options error_on_line_overflow and

View file

@ -1,10 +1,3 @@
[build]
publish = "target/release/dist"
# All deploys from the Production branch
[context.production]
command = "cargo xtask dist --release && cargo doc --workspace --all-features --no-deps && mv target/doc target/release/dist/api"
# all deploys generated from a pull/merge request
[context.deploy-preview]
command = "cargo xtask dist --release"