Need a different cache for release builds

This commit is contained in:
Natsu Kagami 2020-06-27 21:43:49 -04:00
parent bf32d298d1
commit a3bc131525
Signed by: nki
GPG key ID: 73376E117CD20735

View file

@ -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