Skip to content

Commit 3da945d

Browse files
committed
chore(ci): fix release YAML syntax
Signed-off-by: Eliza Weisman <[email protected]>
1 parent 83f4b62 commit 3da945d

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
- name: extract tag
1818
id: tag
1919
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/')
2221
- uses: taiki-e/create-gh-release-action@v1
2322
with:
2423
changelog: ${{ steps.tag.outputs.TAG }}/CHANGELOG.md
@@ -27,18 +26,17 @@ jobs:
2726
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2827

2928
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') }}
3432
strategy:
3533
matrix:
3634
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

Comments
 (0)