Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release-plz

on:
push:
branches:
- main

jobs:
# Publishes to crates.io and creates the git tag and GitHub release when the
# version in Cargo.toml is not yet published. Authenticates to crates.io via
# trusted publishing, so no registry token is stored in the repository.
release-plz-release:
name: Release-plz release
if: github.repository_owner == 'MaterializeInc'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Opens or updates the release PR that bumps the version and changelog.
release-plz-pr:
name: Release-plz PR
if: github.repository_owner == 'MaterializeInc'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
# Queues rather than cancels, so a push during a run is not skipped.
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run release-plz
uses: release-plz/action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading