Skip to content

Commit

Permalink
chore(CI): attempt to automate github releases (#1795)
Browse files Browse the repository at this point in the history
Hopefully this should automatically publish a GitHub release with
each individual crate's changelog when an appropriate tag is pushed,
provided I haven't made a YAML mistake.

Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Dec 23, 2021
1 parent fc52d45 commit 19b7b1b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
push:
tags:
- tracing-[0-9]+.*
- tracing-[a-z]+-[0-9]+.*

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@v2
- uses: taiki-e/[email protected]
with:
prefix: tracing[\-a-z]*
changelog: "$prefix/CHANGELOG.md"
title: "$prefix $version"
branch: v0.1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 19b7b1b

Please sign in to comment.