Sitelet https://github.com/feeledger/feeledger.github.io/actions/runs/35555951958/workflow
Skip to content

FixPush

FixPush #122

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: TypeScript check
run: npx tsc --noEmit
- name: Build
env:
VITE_GOOGLE_CLIENT_ID: ${{ secrets.VITE_GOOGLE_CLIENT_ID }}
run: npm run build
- name: Verify build output
run: |
echo "=== Build output ==="
ls -lh dist/
ls -lh dist/assets/ 2>/dev/null || true
echo "=== index.html head ==="
head -20 dist/index.html
echo "=== Service worker ==="
ls dist/sw.js dist/workbox-*.js 2>/dev/null && echo "SW present" || echo "No SW found"
echo "=== PWA manifest ==="
cat dist/manifest.json 2>/dev/null || echo "No manifest in dist"
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5