tohaya 0.1.2

Convert citation file formats to hayagriva YAML
Documentation
name: Publish web app

on:
  push:
    branches: [ master ]
    paths:
      - Cargo.*
      - src/**
      - web/**

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Install just
        uses: taiki-e/install-action@just
      - name: Install wasm-pack
        run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
      - name: Build
        run: just build
      - name: Upload artifacts
        uses: actions/upload-pages-artifact@v3
        with:
          path: web/

  # https://github.com/actions/deploy-pages#usage
  deploy:
    runs-on: ubuntu-latest
    needs: [ build ]

    # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
    permissions:
      pages: write      # to deploy to Pages
      id-token: write   # to verify the deployment originates from an appropriate source

    # Deploy to the github-pages environment
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}

    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4