File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Expand file tree Collapse file tree 1 file changed +28
-4
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_api2
44
46
uses : actions-rs/cargo@v1
81
83
uses : actions/cache@v1
82
84
id : cache
83
85
with :
84
- path : ~/.cargo
86
+ path : |
87
+ ~/.cargo
88
+ target
85
89
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
86
90
- name : Run clippy --all-targets --no-default-features -- -D warnings
87
91
uses : actions-rs/clippy-check@v1
@@ -129,7 +133,9 @@ jobs:
129
133
uses : actions/cache@v1
130
134
id : cache
131
135
with :
132
- path : ~/.cargo
136
+ path : |
137
+ ~/.cargo
138
+ target
133
139
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
134
140
# We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
135
141
- name : Run doc tests
@@ -141,4 +147,22 @@ jobs:
141
147
uses : actions-rs/cargo@v1
142
148
with :
143
149
command : doc
144
- args : --no-deps --features "${{ env.CI_TWITCH_API2_FEATURES }}"
150
+ args : --no-deps --features "${{ env.CI_TWITCH_API2_FEATURES }}"
151
+ release :
152
+ name : Release
153
+ runs-on : ubuntu-latest
154
+ if : startsWith(github.head_ref, 'release-') || startsWith(github.ref, 'release-')
155
+ steps :
156
+ - uses : actions/checkout@v2
157
+ with :
158
+ submodules : false
159
+ - uses : actions-rs/toolchain@v1
160
+ with :
161
+ profile : minimal
162
+ toolchain : nightly
163
+ override : true
164
+ - name : Run dry run publish
165
+ uses : actions-rs/cargo@v1
166
+ with :
167
+ command : publish
168
+ args : --dry-run --features "${{ env.CI_TWITCH_OAUTH2_FEATURES }}"
You can’t perform that action at this time.
0 commit comments