File tree 2 files changed +57
-29
lines changed
2 files changed +57
-29
lines changed Original file line number Diff line number Diff line change
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 unpublished packages.
14
+ release-plz-release :
15
+ name : Release-plz release
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+ - name : Install Rust toolchain
25
+ uses : dtolnay/rust-toolchain@stable
26
+ - name : Run release-plz
27
+ uses :
release-plz/[email protected]
28
+ with :
29
+ command : release
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
33
+
34
+ # Create a PR with the new versions and changelog, preparing the next release.
35
+ release-plz-pr :
36
+ name : Release-plz PR
37
+ runs-on : ubuntu-latest
38
+ permissions :
39
+ contents : write
40
+ pull-requests : write
41
+ concurrency :
42
+ group : release-plz-${{ github.ref }}
43
+ cancel-in-progress : false
44
+ steps :
45
+ - name : Checkout repository
46
+ uses : actions/checkout@v4
47
+ with :
48
+ fetch-depth : 0
49
+ - name : Install Rust toolchain
50
+ uses : dtolnay/rust-toolchain@stable
51
+ - name : Run release-plz
52
+ uses :
release-plz/[email protected]
53
+ with :
54
+ command : release-pr
55
+ env :
56
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments