-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (34 loc) · 1.09 KB
/
ci.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
on:
push: {}
pull_request: {}
jobs:
cargo-make-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # for commit linting and semantic-release
persist-credentials: false
- uses: webiny/[email protected]
- run: rustup update
- uses: actions/cache@v3
with:
path: |
.bin/
target/
~/.cargo/
# cargo-run-bin refers to the following step
key: ${{ runner.os }}_cargo-run-bin_${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
restore-keys: |
${{ runner.os }}_cargo-run-bin_
${{ runner.os }}_
- run: cargo install cargo-run-bin
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
private-key: ${{ secrets.MICHIE_BOT_PRIVATE_KEY }}
app-id: ${{ secrets.MICHIE_BOT_APP_ID }}
- run: cargo bin makers ci
env:
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}