Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 29, 2022
1 parent 352ff3b commit 71dd4ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
prefix: crossbeam(-[a-z]+)?
changelog: $prefix/CHANGELOG.md
title: $prefix $version
branch: master
branch: v0.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref_name, 'crossbeam-0')"
Expand All @@ -35,7 +35,7 @@ jobs:
prefix: crossbeam(-[a-z]+)?
changelog: CHANGELOG.md
title: crossbeam $version
branch: master
branch: v0.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref_name, 'crossbeam-0')
4 changes: 2 additions & 2 deletions tools/publish.sh
Expand Up @@ -33,8 +33,8 @@ if gh release view "${tag}" &>/dev/null; then
bail "tag '${tag}' has already been created and pushed"
fi

if ! git branch | grep -q '\* master'; then
bail "current branch is not 'master'"
if ! git branch | grep -q '\* v0.8'; then
bail "current branch is not 'v0.8'"
fi

git tag "${tag}"
Expand Down

0 comments on commit 71dd4ca

Please sign in to comment.