Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the upload-bins github actions step on release #489

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 2 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,14 @@
name: Upload Binaries

on:
push:
tags:
- console-subscriber-v[0-9]+.*
- console-api-v[0-9]+.*
- tokio-console-v[0-9]+.*
release:
types: [created]

jobs:
create-release:
name: Create GitHub release
# only publish from the origin repository
if: github.repository_owner == 'tokio-rs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1.3.0
with:
prefix: "(console-subscriber)|(console-api)|(tokio-console)"
changelog: "$prefix/CHANGELOG.md"
title: "$prefix $version"
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

upload-bins:
name: "Upload release binaries"
# only upload binaries if the tag is a`tokio-console` release
if: contains(github.ref, 'tokio-console')
needs: create-release
strategy:
matrix:
include:
Expand Down