From a3bc131525f4a25ff3fa30ad74e27404c6e29ec5 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sat, 27 Jun 2020 21:43:49 -0400 Subject: [PATCH] Need a different cache for release builds --- .github/workflows/deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index db0b10d..6a5b32e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,8 @@ name: Deploy -# on: - # push: - # branches: [ master ] -on: [ push ] +on: + push: + branches: [ master ] jobs: deploy: @@ -20,7 +19,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rust-release-${{ hashFiles('**/Cargo.lock') }} - name: Build release run: cargo build --release - name: Upload binary