17
17
- name : extract tag
18
18
id : tag
19
19
run :
20
- echo ::set-output name=TAG::$(echo $GITHUB_REF | sed -r
21
- ' s/.*(console-subscriber|console-api|tokio-console).*/\1/' ))
20
+ echo ::set-output name=TAG::$(echo $GITHUB_REF | sed -r 's/.*(console-subscriber|console-api|tokio-console).*/\1/')
22
21
- uses : taiki-e/create-gh-release-action@v1
23
22
with :
24
23
changelog : ${{ steps.tag.outputs.TAG }}/CHANGELOG.md
@@ -27,18 +26,17 @@ jobs:
27
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
27
29
28
upload-bins :
30
- # only publish from the origin repository
31
- if : github.repository_owner == 'tokio-rs'
32
- # only upload binaries if the tag is a `tokio-console` release
33
- if : contains(github.ref, 'tokio-console')
29
+ # only upload binaries if we're on the origin repository and if the tag is a
30
+ # `tokio-console` release
31
+ if : ${{ github.repository_owner == 'tokio-rs' && contains(github.ref, 'tokio-console') }}
34
32
strategy :
35
33
matrix :
36
34
os : [ubuntu-latest, macos-latest, windows-latest]
37
- runs-on : ${{ matrix.os }}
38
- steps :
39
- - uses : actions/checkout@v2
40
- - uses : taiki-e/upload-rust-binary-action@v1
41
- with :
42
- bin : tokio-console
43
- env :
44
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ runs-on : ${{ matrix.os }}
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+ - uses : taiki-e/upload-rust-binary-action@v1
39
+ with :
40
+ bin : tokio-console
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments