Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
build: add release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger committed Nov 5, 2023
1 parent f1c9713 commit 59a7921
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4

# Nightly needed for `cargo +nightly fmt` below
- name: Install Rust toolchain
run: |
rustup update
rustup toolchain install nightly --profile minimal
rustup component add rustfmt --toolchain nightly
# rustup component add clippy --toolchain nightly
- name: Install just
uses: taiki-e/install-action@v2
Expand All @@ -34,6 +33,9 @@ jobs:
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2

- name: Build
run: just check

- name: Check code format
run: just fmt_check

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: release-plz
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Rust toolchain
run: rustup update

- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 59a7921

Please sign in to comment.