Skip to content

Merge branch 'ttu-ttu:main' into main #4

Merge branch 'ttu-ttu:main' into main

Merge branch 'ttu-ttu:main' into main #4

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- apps/web/**
jobs:
build-and-deploy:
name: Build and deploy
if: >-
startsWith(github.event.head_commit.message, 'feat') ||
startsWith(github.event.head_commit.message, 'fix') ||
startsWith(github.event.head_commit.message, 'perf')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.1
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Postinstall steps
run: pnpm svelte-kit sync
working-directory: apps/web
- name: Build
run: pnpm build
working-directory: apps/web
env:
VITE_GDRIVE_CLIENT_ID: ${{ secrets.GDRIVE_CLIENT_ID }}
VITE_ONEDRIVE_CLIENT_ID: ${{ secrets.ONEDRIVE_CLIENT_ID }}
- name: Deploy
uses: cloudflare/pages-action@v1.5.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
workingDirectory: apps/web