Prepare for the next release #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- crossbeam-[0-9]+.* | |
- crossbeam-[a-z]+-[0-9]+.* | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
create-release: | |
if: github.repository_owner == 'crossbeam-rs' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
prefix: crossbeam(-[a-z]+)? | |
changelog: $prefix/CHANGELOG.md | |
title: $prefix $version | |
branch: v0.8 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: "!startsWith(github.ref_name, 'crossbeam-0')" | |
# Since the crossbeam crate is located at the root, we need to handle it differently. | |
# TODO: Consider moving crossbeam crate to a subdirectory. | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
prefix: crossbeam(-[a-z]+)? | |
changelog: CHANGELOG.md | |
title: crossbeam $version | |
branch: v0.8 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: startsWith(github.ref_name, 'crossbeam-0') |