Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Merge upstream: comprehensive Fairfield Calendar system #22

Merge upstream: comprehensive Fairfield Calendar system

Merge upstream: comprehensive Fairfield Calendar system #22

Workflow file for this run

name: Deploy to GitHub Pages
# Required GitHub Variables (Settings -> Secrets and variables -> Actions -> Variables):
# - RELAY_URL: WebSocket URL of Nostr relay (e.g., wss://nosflare-relay-xxx.run.app)
# - EMBEDDING_API_URL: HTTPS URL of embedding API (e.g., https://embedding-api-xxx.run.app)
# - ADMIN_PUBKEY: Nostr public key for admin access (hex format)
on:
push:
branches:
- main
paths-ignore:
- 'nosflare/**'
- '.github/workflows/deploy-relay.yml'
- '.github/workflows/deploy-relay-gcp.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
env:
NODE_VERSION: '20'
# These URLs should be set in GitHub repository variables after GCP deployment
# Settings -> Secrets and variables -> Actions -> Variables
VITE_RELAY_URL: ${{ vars.RELAY_URL || 'wss://nostr-relay-617806532906.us-central1.run.app' }}
VITE_EMBEDDING_API_URL: ${{ vars.EMBEDDING_API_URL || 'https://embedding-api-617806532906.us-central1.run.app' }}
VITE_ADMIN_PUBKEY: ${{ vars.ADMIN_PUBKEY || '11ed64225dd5e2c5e18f61ad43d5ad9272d08739d3a20dd25886197b0738663c' }}
VITE_APP_NAME: Fairfield - DreamLab - Cumbria
VITE_NDK_DEBUG: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Clean npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci || npm install
- name: Build
run: npm run build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4