Skip to content

Commit d199dc3

Browse files
Merge #37
37: release v0.5.0 alpha.5 r=Emilgardis a=Emilgardis Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents 7a7127e + 77d11ee commit d199dc3

File tree

4 files changed

+108
-107
lines changed

4 files changed

+108
-107
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
uses: actions/cache@v1
3939
id: cache
4040
with:
41-
path: ~/.cargo
41+
path: |
42+
~/.cargo
43+
target
4244
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4345
- name: Test twitch_oauth2
4446
uses: actions-rs/cargo@v1
@@ -77,7 +79,9 @@ jobs:
7779
uses: actions/cache@v1
7880
id: cache
7981
with:
80-
path: ~/.cargo
82+
path: |
83+
~/.cargo
84+
target
8185
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
8286
- name: Run clippy --all-targets --all-features -- -D warnings
8387
uses: actions-rs/cargo@v1
@@ -98,7 +102,9 @@ jobs:
98102
uses: actions/cache@v1
99103
id: cache
100104
with:
101-
path: ~/.cargo
105+
path: |
106+
~/.cargo
107+
target
102108
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
103109
# We do the following to make sure docs.rs can document properly without anything broken, and that docs are working.
104110
- name: Run doc tests
@@ -111,3 +117,21 @@ jobs:
111117
with:
112118
command: doc
113119
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 }}"

0 commit comments

Comments
 (0)