Skip to content

Merge pull request #22 from ValidatorsDAO/add-websites #13

Merge pull request #22 from ValidatorsDAO/add-websites

Merge pull request #22 from ValidatorsDAO/add-websites #13

Workflow file for this run

name: SLV Website
on:
push:
branches: ["main"]
paths:
- "website/slv-dev/**"
- ".github/workflows/slv-dev.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: 9
- 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 }}" > website/slv-dev/.env.local
echo "NEXT_PUBLIC_SOLANA_PRICE_ENDPOINT=${{ secrets.NEXT_PUBLIC_SOLANA_PRICE_ENDPOINT }}" >> website/slv-dev/.env.local
- name: Deploy to Cloudflare
run: pnpm -F slv-dev run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}