[web] fix gitignore #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |