mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Trigger deploy (#143)
This commit is contained in:
parent
a6725990de
commit
9407209aa2
3 changed files with 3 additions and 29 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Main Workflow
|
name: Main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -16,13 +16,3 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- run: cargo test --workspace --all-features --verbose
|
- 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
|
|
||||||
|
|
13
.github/workflows/pr.yml
vendored
13
.github/workflows/pr.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: PR Workflow
|
name: PR
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -8,22 +8,13 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
checks:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
size: ${{ steps.build.outputs.size }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- run: cargo test --workspace --all-features --verbose
|
- 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
|
- uses: actions/checkout@v2
|
||||||
- run: rustup install --profile default nightly
|
- run: rustup install --profile default nightly
|
||||||
# NOTE: we use nightly here to enable the options error_on_line_overflow and
|
# NOTE: we use nightly here to enable the options error_on_line_overflow and
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
[build]
|
[build]
|
||||||
publish = "target/release/dist"
|
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"
|
command = "cargo xtask dist --release"
|
||||||
|
|
Loading…
Reference in a new issue