Files
lit-examples/.github/workflows/deploy.yml
T
rodydavis 22a1020d15
Build and Deploy / build-and-deploy (push) Failing after 54s
ci: switch to static site deployment via Gitea Pages
- Replaced Docker image build/push with static site publishing using peaceiris/actions-gh-pages.
- Updated Vite configuration to use /lit-examples/ as the base path.
- Enhanced mpaHtmlPlugin to correctly prefix assets with the base path in subfolders.
- Updated CI permissions to allow content writing for deployment.
2026-05-17 20:31:15 -07:00

54 lines
1.1 KiB
YAML

name: Build and Deploy
on:
push:
branches: ["main", "master"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: git.rodydavis.dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.7.1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Set up Bazel (Bazelisk)
run: npm install -g @bazel/bazelisk
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Verify Hermetic Bazel Build
run: bazel build //...
- name: Build Site
run: pnpm run build --base=/lit-examples/
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: dist