tower/.github/workflows/release.yml
Eliza Weisman 5e280fedca
ci: fix wrong tag regex for tower (#644)
In #643, I accidentally included a `v` before the version number in the
regex for matching release tags for the `tower` crate, but not for
`tower-whatever` crates. All previous release tags on this repo don't
use a `v`, so adding it was a mistake. This branch removes it.
2022-02-16 22:07:08 +00:00

24 lines
605 B
YAML

name: create github release
on:
push:
tags:
- tower-[0-9]+.*
- tower-[a-z]+-[0-9]+.*
jobs:
create-release:
name: Create GitHub release
# only publish from the origin repository
if: github.repository_owner == 'tower-rs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: taiki-e/create-gh-release-action@v1.3.0
with:
prefix: "(tower)|(tower-[a-z]+)"
changelog: "$prefix/CHANGELOG.md"
title: "$prefix $version"
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}