Skip to content

Commit

Permalink
chore(ci): fix release YAML syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Dec 17, 2021
1 parent 83f4b62 commit 3da945d
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
- name: extract tag
id: tag
run:
echo ::set-output name=TAG::$(echo $GITHUB_REF | sed -r
's/.*(console-subscriber|console-api|tokio-console).*/\1/'))
echo ::set-output name=TAG::$(echo $GITHUB_REF | sed -r 's/.*(console-subscriber|console-api|tokio-console).*/\1/')
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: ${{ steps.tag.outputs.TAG }}/CHANGELOG.md
Expand All @@ -27,18 +26,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

upload-bins:
# only publish from the origin repository
if: github.repository_owner == 'tokio-rs'
# only upload binaries if the tag is a `tokio-console` release
if: contains(github.ref, 'tokio-console')
# only upload binaries if we're on the origin repository and if the tag is a
# `tokio-console` release
if: ${{ github.repository_owner == 'tokio-rs' && contains(github.ref, 'tokio-console') }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: tokio-console
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: tokio-console
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3da945d

Please sign in to comment.