From c3a766051baababa935451ef1cb82f6bc81aa5f4 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Thu, 16 Dec 2021 16:50:05 -0800 Subject: [PATCH] chore: just automate binary publishing for now Looks like Taiki's action can't currently handle tags with prefixes, so they have to be _just_ version strings (see taiki-e/create-gh-release-action#1). So, we can consider automatically generating the release when it supports tags of the format we're using (separate prefixes for each workspace crate). For now, let's just automate the building and uploading of release binaries, and manually create the releases... --- .github/workflows/release.yaml | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 04a9eaed9..cc0cc4bbb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,34 +1,12 @@ -name: Release +name: Upload Binaries on: - push: - tags: - - console-subscriber-v[0-9]+.* - - console-api-v[0-9]+.* - - tokio-console-v[0-9]+.* + release: jobs: - create-release: - # only publish from the origin repository - if: github.repository_owner == 'tokio-rs' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: extract tag - id: tag - run: - 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 - branch: main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - upload-bins: - # 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') }} + # only upload binaries if the tag is a`tokio-console` release + if: contains(github.ref, 'tokio-console') strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest]