mirror of
https://github.com/ruvnet/RuView.git
synced 2026-08-26 02:04:55 +00:00
Publish ui/veil-console.html as the site landing page (index.html) via GitHub Pages on push to main. The console is a single self-contained file (inline CSS/JS, no network), so the build just stages it. Enable once under Settings → Pages → Source: "GitHub Actions". Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01WEXNqzs7UsfNFBcP5yW21p
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Pages
|
|
|
|
# Publish the WiFi Veil Console (ui/veil-console.html) to GitHub Pages.
|
|
# The console is a single self-contained file (inline CSS/JS, no network), so the
|
|
# "build" is just staging it as the site's index.html. Enable once under
|
|
# Settings → Pages → Source: "GitHub Actions".
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "ui/**"
|
|
- ".github/workflows/pages.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
# Allow one concurrent deployment; don't cancel an in-progress one.
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Stage the console as the site
|
|
run: |
|
|
mkdir -p _site
|
|
cp ui/veil-console.html _site/index.html
|
|
cp ui/veil-console.html _site/veil-console.html
|
|
- uses: actions/configure-pages@v5
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: _site
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v4
|