Skip to content

Commit 190e1aa

Browse files
authored
Enable automated releases (#1083)
1 parent 607b990 commit 190e1aa

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.github/workflows/release-plz.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Publish release
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+
- &install-rust
23+
name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
- name: Authenticate to crates.io
26+
uses: rust-lang/crates-io-auth-action@v1
27+
id: auth
28+
- name: Run release-plz
29+
uses: release-plz/[email protected]
30+
with:
31+
command: release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
35+
36+
release-plz-pr:
37+
name: Release-plz PR
38+
runs-on: ubuntu-latest
39+
if: ${{ github.repository_owner == 'aws' }}
40+
permissions:
41+
pull-requests: write
42+
contents: write
43+
concurrency:
44+
group: release-plz-${{ github.ref }}
45+
cancel-in-progress: false
46+
steps:
47+
- *checkout
48+
- *install-rust
49+
- name: Run release-plz
50+
uses: release-plz/[email protected]
51+
with:
52+
command: release-pr
53+
env:
54+
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)