-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (60 loc) · 1.75 KB
/
release-plz.yml
File metadata and controls
74 lines (60 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: release-plz
permissions:
pull-requests: write
contents: write
on:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
pr:
name: Pull request
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'tonywu6'
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# token is required to not commit as github-actions[bot]
# otherwise CI will not run
token: ${{ secrets.RELEASE_PLZ_GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
# release-plz > postprocessors > prettier
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: release-plz/action@v0.5.120
with:
command: release-pr
env:
# token is required to not commit as github-actions[bot]
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_GITHUB_TOKEN }}
release:
name: Release
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'tonywu6'
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
- uses: release-plz/action@v0.5.120
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.RELEASE_PLZ_PUBLISH_TOKEN }}