Skip to content

fix: rendering

fix: rendering #32

Workflow file for this run

name: Build & Deploy
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v4
# with:
# submodules: "recursive" # Ensures submodules are checked out
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Build
run: |
yarn
yarn build
env: # Set environment variables for the build
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
# - name: Prepare custom environment variables
# id: env_vars
# run: |
# echo '{"SUPABASE_URL": "'"$SUPABASE_URL"'", "SUPABASE_ANON_KEY": "'"$SUPABASE_ANON_KEY"'"}' > env_vars.json
# echo "::set-output name=env_vars::$(cat env_vars.json)"
- name: Deploy to Cloudflare
if: env.skip != 'true'
uses: ubiquity/cloudflare-deploy-action@main
with:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "static"
current_branch: ${{ github.ref_name }}
pull_request_number: ${{ github.event.pull_request.number }}
commit_sha: ${{ github.sha }}
# env_vars: ${{ steps.prepare.outputs.env_vars }}