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
38 changes: 37 additions & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,46 @@ on:
branches:
- main


env:
LLVM_VERSION: "14.0"

jobs:
release-plz-pr:
name: Create release-plz PR
runs-on: ubuntu-latest

# Ensure only one release-plz tries to create a PR at a time.
#
# If two instances update the PR simultaneously, one will see an outdated git ref
# and end up recreating the PR unnecessarily.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-pr
cancel-in-progress: true

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.HUGRBOT_PAT }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Create release PR
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
with:
command: release-pr

# This job triggers the release to crates.io if the current crate version is higher than the
# ones in the registry.
#
# Release-plz will only run on commits originating from a PR whose source branch started with
# `release-plz-` (see `release-always=false` in the config).
release-plz:
name: Release-plz
name: Release the crates
runs-on: ubuntu-latest
environment: crate-release
permissions:
Expand Down Expand Up @@ -43,3 +77,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
with:
command: release
Loading