Skip to content

Commit 5538beb

Browse files
authored
chore: release-plz fix (#8)
* chore: release-plz fix * chore: moving dependabot file
1 parent 09af9e1 commit 5538beb

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.github/workflows/release-plz.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526
- name: Install Rust toolchain
2627
uses: dtolnay/rust-toolchain@stable
2728
- uses: Swatinem/rust-cache@v2
@@ -31,3 +32,30 @@ jobs:
3132
command: release-pr
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
# Create a GitHub release after the release PR is merged.
37+
release-plz-release:
38+
name: Release-plz Release
39+
runs-on: ubuntu-latest
40+
if: ${{ github.repository_owner == 'Shuftle' }}
41+
permissions:
42+
contents: write
43+
pull-requests: read
44+
concurrency:
45+
group: release-plz-release-${{ github.ref }}
46+
cancel-in-progress: false
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v6
50+
with:
51+
fetch-depth: 0
52+
persist-credentials: false
53+
- name: Install Rust toolchain
54+
uses: dtolnay/rust-toolchain@stable
55+
- uses: Swatinem/rust-cache@v2
56+
- name: Run release-plz
57+
uses: release-plz/action@v0.5
58+
with:
59+
command: release
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- uses: olegtarasov/get-tag@v2.1.2
2929
id: get_version
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
3131
with:
3232
lfs: ${{ env.use_git_lfs }}
3333
- uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)