name: Deploy GitHub Pages Site

on:
  workflow_dispatch:

permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up Pages
        uses: actions/configure-pages@v4

      - name: Upload /web folder as artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: ./web  

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