Skip to content

use bulma.io template #5

use bulma.io template

use bulma.io template #5

Workflow file for this run

name: Vite PNPM Cloudflare Pages
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: |
cd web
npm install -g pnpm
pnpm install
- name: Build
run: cd web && npm run build
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v2
# FIXME: add secret to github repo
# - name: Deploy to Cloudflare Pages
# uses: cloudflare/cloudflare-pages-deploy-action@main
# with:
# script: cd web && npm run build
# directory: web/dist
# token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# site: en2ru