Skip to content

Update the restore-keys in cache action #92

Update the restore-keys in cache action

Update the restore-keys in cache action #92

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-check-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('crates/**') }}
restore-keys: cargo-check-
- run: cargo check
build-deploy:
name: Build & deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-build-ssg-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('crates/**') }}
restore-keys: cargo-build-ssg
- run: cargo run -p ssg
env:
FONT_ZIP_URL: "${{ secrets.FONT_ZIP_URL }}"
- uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './dist'
production-deploy: true
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- uses: axiomhq/annotation-action@v0.1.0
with:
axiomToken: ${{ secrets.AXIOM_TOKEN}}
datasets: netlify
type: deployment
title: Production deployment
description: ${{ github.event.head_commit.message }}