File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -6,30 +6,56 @@ name: Release
66permissions :
77 pull-requests : write
88 contents : write
9+ id-token : write
910
1011on :
1112 push :
1213 branches :
1314 - main
1415
1516jobs :
16- release-plz :
17- name : Release-plz
17+ release-plz-release :
18+ name : Release-plz Release
1819 runs-on : ubuntu-latest
1920 environment : release
2021 permissions :
22+ contents : write # Required for updating the tags etc.
2123 id-token : write # Required for OIDC token exchange
24+ if : ${{ github.repository_owner == 'ratatui' }}
2225 steps :
2326 - name : Checkout
2427 uses : actions/checkout@v4
2528 with :
2629 fetch-depth : 0
2730 - name : Install Rust stable
2831 uses : dtolnay/rust-toolchain@stable
29- - uses : rust-lang/crates-io-auth-action@v1
32+ - name : Authenticate with crates.io
33+ uses : rust-lang/crates-io-auth-action@v1
3034 id : auth
3135 - name : Run release-plz
32- 36+ uses :
release-plz/[email protected] 37+ with :
38+ command : release
3339 env :
3440 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3541 CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
42+ release-plz-pr :
43+ name : Release-plz PR
44+ runs-on : ubuntu-latest
45+ permissions :
46+ contents : write # Required for updating the tags etc.
47+ pull-requests : write # Required for creating the PR
48+ if : ${{ github.repository_owner == 'ratatui' }}
49+ steps :
50+ - name : Checkout
51+ uses : actions/checkout@v4
52+ with :
53+ fetch-depth : 0
54+ - name : Install Rust stable
55+ uses : dtolnay/rust-toolchain@stable
56+ - name : Run release-plz
57+ uses :
release-plz/[email protected] 58+ with :
59+ command : release-pr
60+ env :
61+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments