Without this, changes to the workflow file itself do not trigger a new run, since the path filter only matched Apps/LandingSite/**. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
name: Landing Page
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'Apps/LandingSite/**'
|
|
- '.github/workflows/landing-page.yml'
|
|
branches: [main]
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: Apps/LandingSite/pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
working-directory: Apps/LandingSite
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Fetch release manifest
|
|
working-directory: Apps/LandingSite
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: pnpm run fetch-release
|
|
|
|
- name: Build static site
|
|
working-directory: Apps/LandingSite
|
|
run: pnpm run build
|
|
|
|
- name: Upload Pages artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: Apps/LandingSite/dist
|
|
|
|
deploy:
|
|
name: 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@v4
|