yahtzee-engine 0.1.0

Yahtzee rules, scoring, and bots: a fast heuristic and an exact optimal expected-value solver
Documentation
name: Pages

on:
  push:
    branches: [ "main" ]
  workflow_dispatch:

# Deploy the wasm front end in web/ to GitHub Pages.  Least-privilege token
# plus the id-token needed by deploy-pages.
permissions:
  contents: read
  pages: write
  id-token: write

# One live deployment at a time; let a running one finish rather than cancel.
concurrency:
  group: pages
  cancel-in-progress: false

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
    # The web crate's only path dependency is the repo itself, so a plain
    # checkout is enough.
    - uses: actions/checkout@v7
    - name: Install wasm-pack
      run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
    - name: Build wasm
      run: wasm-pack build --release --target web
      working-directory: web
    - name: Stage static site
      run: |
        cd web
        mkdir _site
        cp -r index.html app.js worker.js style.css pkg _site/
    - uses: actions/upload-pages-artifact@v5
      with:
        path: web/_site
    - id: deployment
      uses: actions/deploy-pages@v5