Skip to content

fix: rendering

fix: rendering #38

Workflow file for this run

name: Build & Deploy
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
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: Use Organization Variable
run: |
echo "vars.SUPABASE_URL: ${{ vars.SUPABASE_URL }}"
echo "vars.SUPABASE_ANON_KEY: ${{ vars.SUPABASE_ANON_KEY }}"
echo "secrets.SUPABASE_URL2: ${{ secrets.SUPABASE_URL }}"
echo "secrets.SUPABASE_ANON_KEY2: ${{ secrets.SUPABASE_ANON_KEY }}"
env:
SUPABASE_URL: ${{ vars.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ vars.SUPABASE_ANON_KEY }}
SUPABASE_URL2: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY2: ${{ secrets.SUPABASE_ANON_KEY }}
- name: Build
run: |
echo $SUPABASE_URL
echo $SUPABASE_ANON_KEY
echo $APP_ID
echo $APP_INSTALLATION_ID
echo $APP_PRIVATE_KEY
yarn
yarn build
env: # Set environment variables for the build
SUPABASE_URL: ${{ vars.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ vars.SUPABASE_ANON_KEY }}
APP_ID: ${{ vars.APP_ID }}
APP_INSTALLATION_ID: ${{ vars.APP_INSTALLATION_ID }}
APP_PRIVATE_KEY: ${{ vars.APP_PRIVATE_KEY }}
- 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.event.pull_request.head.sha }}