build: macro crate inherits most keys #298
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |