File tree Expand file tree Collapse file tree 4 files changed +108
-107
lines changed Expand file tree Collapse file tree 4 files changed +108
-107
lines changed Original file line number Diff line number Diff line change 38
38
uses : actions/cache@v1
39
39
id : cache
40
40
with :
41
- path : ~/.cargo
41
+ path : |
42
+ ~/.cargo
43
+ target
42
44
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
43
45
- name : Test twitch_oauth2
44
46
uses : actions-rs/cargo@v1
77
79
uses : actions/cache@v1
78
80
id : cache
79
81
with :
80
- path : ~/.cargo
82
+ path : |
83
+ ~/.cargo
84
+ target
81
85
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
82
86
- name : Run clippy --all-targets --all-features -- -D warnings
83
87
uses : actions-rs/cargo@v1
98
102
uses : actions/cache@v1
99
103
id : cache
100
104
with :
101
- path : ~/.cargo
105
+ path : |
106
+ ~/.cargo
107
+ target
102
108
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
103
109
# We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
104
110
- name : Run doc tests
@@ -111,3 +117,21 @@ jobs:
111
117
with :
112
118
command : doc
113
119
args : --no-deps --features "${{ env.CI_TWITCH_OAUTH2_FEATURES }}"
120
+ release :
121
+ name : Release
122
+ runs-on : ubuntu-latest
123
+ if : startsWith(github.head_ref, 'release-') || startsWith(github.ref, 'release-')
124
+ steps :
125
+ - uses : actions/checkout@v2
126
+ with :
127
+ submodules : false
128
+ - uses : actions-rs/toolchain@v1
129
+ with :
130
+ profile : minimal
131
+ toolchain : nightly
132
+ override : true
133
+ - name : Run dry run publish
134
+ uses : actions-rs/cargo@v1
135
+ with :
136
+ command : publish
137
+ args : --dry-run --features "${{ env.CI_TWITCH_OAUTH2_FEATURES }}"
You can’t perform that action at this time.
0 commit comments