mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
@@ -1,57 +0,0 @@
|
|||||||
name: Release-plz
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- v0.8.x
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# Release unpublished packages.
|
|
||||||
release-plz-release:
|
|
||||||
name: Release-plz release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.repository_owner == 'tokio-rs' }}
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: read
|
|
||||||
id-token: write
|
|
||||||
steps:
|
|
||||||
- &checkout
|
|
||||||
name: Checkout repository
|
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
persist-credentials: false
|
|
||||||
- &install-rust
|
|
||||||
name: Install Rust toolchain
|
|
||||||
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
- name: Run release-plz
|
|
||||||
uses: release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5
|
|
||||||
with:
|
|
||||||
command: release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# Create a PR with the new versions and changelog, preparing the next release.
|
|
||||||
release-plz-pr:
|
|
||||||
name: Release-plz PR
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.repository_owner == 'tokio-rs' }}
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
concurrency:
|
|
||||||
group: release-plz-${{ github.ref }}
|
|
||||||
cancel-in-progress: false
|
|
||||||
steps:
|
|
||||||
- *checkout
|
|
||||||
- *install-rust
|
|
||||||
- name: Run release-plz
|
|
||||||
uses: release-plz/action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5
|
|
||||||
with:
|
|
||||||
command: release-pr
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[workspace]
|
|
||||||
# Only release when the release PR is merged, not on every commit
|
|
||||||
# https://release-plz.dev/docs/config#the-release_always-field
|
|
||||||
release_always = false
|
|
||||||
|
|
||||||
# Label release PRs for easy identification
|
|
||||||
# https://release-plz.dev/docs/config#the-pr_labels-field
|
|
||||||
pr_labels = ["release"]
|
|
||||||
Reference in New Issue
Block a user