From a6725990dec0db97529dafdd5b9a2362c6e68412 Mon Sep 17 00:00:00 2001 From: Yohan Boogaert Date: Mon, 27 Jun 2022 15:25:23 +0200 Subject: [PATCH] Fix Netflify deploy (#142) --- .github/workflows/main.yml | 1 - netlify.toml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2116501..97b361e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,6 @@ jobs: site: runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' }} steps: - uses: actions/checkout@v2 - run: cargo doc --verbose --workspace --all-features --no-deps diff --git a/netlify.toml b/netlify.toml index 0c5a5f2..f444604 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,8 +3,8 @@ publish = "target/release/dist" # All deploys from the Production branch [context.production] -command = "cargo xtask dist && cargo doc --workspace --all-features --no-deps && mv target/doc target/release/dist/api" +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" +command = "cargo xtask dist --release"