-
Notifications
You must be signed in to change notification settings - Fork 322
46 lines (42 loc) · 1.22 KB
/
release-plz.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
name: release-plz
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
- release-plz
concurrency:
group: release-plz
jobs:
release-plz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: unit
#save-if: false TODO: add this back later
cache-on-failure: true
- run: mkdir -p $HOME/bin && echo "$HOME/bin" >> "$GITHUB_PATH"
- run: |
set -euxo pipefail
cargo build --all-features
cp target/debug/mise $HOME/bin
mise trust --all
mise settings set experimental true
- uses: actions/cache@v4
with:
path: ~/.local/share/mise/{installs,plugins}
key: v0-mise-tools-${{ runner.os }}-${{ hashFiles('.mise.toml') }}
restore-keys: v0-mise-tools-${{ runner.os }}-
save-always: true
- run: mise install
- run: mise run release-plz
env:
GITHUB_TOKEN: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}