Skip to content

Commit 84fa901

Browse files
Use release-plz for automated releases
1 parent 578bb6a commit 84fa901

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/release-plz.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-plz-release:
10+
name: Release-plz release
11+
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'aws' }}
13+
permissions:
14+
contents: write
15+
id-token: write
16+
steps:
17+
- &checkout
18+
name: Checkout repository
19+
uses: actions/checkout@v5
20+
with:
21+
fetch-depth: 0
22+
persist-credentials: true
23+
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
24+
- &install-rust
25+
name: Install Rust toolchain
26+
uses: dtolnay/rust-toolchain@stable
27+
- name: Run release-plz
28+
uses: release-plz/[email protected]
29+
with:
30+
command: release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
33+
34+
release-plz-pr:
35+
name: Release-plz PR
36+
runs-on: ubuntu-latest
37+
if: ${{ github.repository_owner == 'aws' }}
38+
permissions:
39+
pull-requests: write
40+
contents: write
41+
concurrency:
42+
group: release-plz-${{ github.ref }}
43+
cancel-in-progress: false
44+
steps:
45+
- *checkout
46+
- *install-rust
47+
- name: Run release-plz
48+
uses: release-plz/[email protected]
49+
with:
50+
command: release-pr
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}

release-plz.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[workspace]
2+
semver_check = true
3+
git_release_enable = false
4+
5+
[[package]]
6+
name = "lambda-integration-tests"
7+
publish = false
8+
9+
[changelog]
10+
protect_breaking_commits = true

0 commit comments

Comments
 (0)