-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (39 loc) · 1.4 KB
/
release-plz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Documentation: https://release-plz.ieni.dev/docs
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: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
# Commits the cargo lock (generally a good practice for upstream libraries)
- name: Commit Cargo.lock
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add Cargo.lock
git commit -m "Update Cargo.lock" || echo "No changes to commit"
# This will run the release-plz action
# The action dectect API breaking changes detection with cargo-semver-checks.
# Semver is auto incremneted based on this
# A PR with the semver bump is created with a new release tag and changelog
# if you configure the cargo registry token, the action will also publish the new version to crates.io
- name: Run release-plz
uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
# The admin of the repository with need to configure the following secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}