Files
lit-examples/.gitea/workflows/deploy.yml
T
rodydavis 4edb6d91fb
Build and Deploy / build-and-deploy (push) Successful in 2m5s
ci: migrate pages deploy to rodydavis/shared-actions/pages-deploy
- Route: https://lit-examples.rodydavis.dev
- Update base href to root
- Update README demo links
2026-10-13 11:34:53 -07:00

53 lines
1.2 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.15.9
- name: Set up Bazel Environment
uses: https://git.rodydavis.dev/rodydavis/shared-actions/setup-bazel@main
with:
node_version: '24'
cache: 'pnpm'
- 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=/rodydavis/lit-examples/
- name: Deploy Static Pages
if: github.event_name != 'pull_request'
uses: https://git.rodydavis.dev/rodydavis/shared-actions/pages-deploy@main
with:
path: './dist'
domain: 'lit-examples.rodydavis.dev'
git_token: ${{ secrets.GIT_TOKEN }}
ssh_key: ${{ secrets.TRUENAS_SSH_KEY }}