-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (54 loc) · 1.48 KB
/
release.yml
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
name: Release
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-24.04-arm
environment:
name: crates-io
steps:
- uses: actions/create-github-app-token@v1
id: token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.token.outputs.token }}
- uses: dtolnay/rust-toolchain@stable
- uses: MarcoIeni/[email protected]
with:
command: release
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
pr:
name: PR
runs-on: ubuntu-24.04-arm
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
steps:
- uses: actions/create-github-app-token@v1
id: token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.token.outputs.token }}
- uses: dtolnay/rust-toolchain@stable
- uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}