File tree Expand file tree Collapse file tree 1 file changed +40
-9
lines changed Expand file tree Collapse file tree 1 file changed +40
-9
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
1
+ name : Release-plz
6
2
7
3
on :
8
4
push :
9
5
branches :
10
6
- main
11
7
12
8
jobs :
13
- release-plz :
14
- name : Release-plz
9
+ release-plz-release :
10
+ name : Release-plz release
15
11
runs-on : ubuntu-latest
12
+ if : ${{ github.repository_owner == 'matrix-org' }}
13
+ permissions :
14
+ contents : write
15
+ id-token : write
16
16
steps :
17
17
- name : Checkout repository
18
18
uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0
21
+ token : ${{ secrets.RELEASE_PLZ_TOKEN }}
21
22
- name : Install Rust toolchain
22
23
uses : dtolnay/rust-toolchain@stable
24
+ - name : Authenticate with crates.io
25
+ uses : rust-lang/crates-io-auth-action@v1
26
+ id : auth
23
27
- name : Run release-plz
24
- uses : MarcoIeni/release-plz-action@v0.5
28
+ uses : release-plz/action@v0.5
29
+ with :
30
+ command : release
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
33
+ CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
34
+
35
+ release-plz-pr :
36
+ name : Release-plz PR
37
+ runs-on : ubuntu-latest
38
+ if : ${{ github.repository_owner == 'matrix-org' }}
39
+ permissions :
40
+ pull-requests : write
41
+ contents : write
42
+ concurrency :
43
+ group : release-plz-${{ github.ref }}
44
+ cancel-in-progress : false
45
+ steps :
46
+ - name : Checkout repository
47
+ uses : actions/checkout@v4
48
+ with :
49
+ fetch-depth : 0
50
+ token : ${{ secrets.RELEASE_PLZ_TOKEN }}
51
+ - name : Install Rust toolchain
52
+ uses : dtolnay/rust-toolchain@stable
53
+ - name : Run release-plz
54
+ uses : release-plz/action@v0.5
55
+ with :
56
+ command : release-pr
25
57
env :
26
58
GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
27
- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments