Skip to content

Merge pull request #31 from ValidatorsDAO/add-websites #2

Merge pull request #31 from ValidatorsDAO/add-websites

Merge pull request #31 from ValidatorsDAO/add-websites #2

name: SLV Frontend Template Web SSG
on:
push:
branches: ["main"]
paths:
- "frontend-template/web-ssg/**"
- ".github/workflows/slv-frontend-template-web-ssg.yml"
jobs:
build:
name: Build and Deploy
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Create .env.local file
run: |
echo "NEXT_PUBLIC_SOLANA_ENDPOINT=${{ secrets.NEXT_PUBLIC_SOLANA_ENDPOINT }}" > frontend-template/web-ssg/.env.local
- name: Deploy to Cloudflare
run: pnpm -F slv-frontend-template-web-ssg run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}