name: Setup GitHub Pages on: workflow_dispatch: permissions: contents: read pages: write id-token: write jobs: setup: runs-on: ubuntu-latest steps: - name: Setup Pages uses: actions/configure-pages@v4 with: enablement: true - name: Create placeholder index.html run: | mkdir -p dist echo '

GitHub Pages Setup Complete

Your site will be available soon.

' > dist/index.html - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: './dist' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4