Skip to content

Repair Week 1 Day 7 sampling contract (#291) #409

Repair Week 1 Day 7 sampling contract (#291)

Repair Week 1 Day 7 sampling contract (#291) #409

Workflow file for this run

name: CI (main)
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: setup rust toolchain
run: rustup update && rustup toolchain install
- uses: dtolnay/rust-toolchain@stable
- run: cargo install mdbook-toc
- run: cargo install mdbook-katex --version 0.10.0-alpha
- uses: taiki-e/install-action@mdbook
- name: install sitemap generator
run: npm install --global static-sitemap-cli@2.2.7
- name: build book and check sitemap
run: book/sitemap.sh
- uses: actions/upload-pages-artifact@v3
with:
path: book/book
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
if: github.event_name == 'push' && github.repository == 'skyzh/tiny-llm'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4