Skip to content

Commit f5742f3

Browse files
committed
feat(release-plz): add release-plz and use lto
1 parent 8267df7 commit f5742f3

File tree

8 files changed

+739
-24
lines changed

8 files changed

+739
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- v[0-9]+.*
7-
8-
jobs:
9-
create-release:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: taiki-e/create-gh-release-action@v1
14-
with:
15-
allow-missing-changelog: true
16-
token: ${{ secrets.GITHUB_TOKEN }}
17-
4+
release:
5+
types: [created]
186
upload-assets:
197
needs: create-release
208
strategy:
@@ -36,4 +24,5 @@ jobs:
3624
bin: rari
3725
target: ${{ matrix.target }}
3826
build-tool: ${{ matrix.build-tool }}
27+
profile: release-lto
3928
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release_plz.yyml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release-plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: MarcoIeni/[email protected]
25+
with:
26+
command: release-pr
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)