Skip to content

Refactor with vvt:

Refactor with vvt: #22

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
setup:
name: setup envrioment and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
with:
version: 6.15.1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: install
run: pnpm install
- name: build
run: pnpm build
env:
VITE_INTEGRATION_ID: ${{ secrets.VITE_INTEGRATION_ID }}
VITE_DB: ${{ secrets.VITE_DB }}
VITE_PROXY: ${{ secrets.VITE_PROXY }}
- name: creat cname
run: |
touch dist/CNAME
echo "www.fanqidi.com" > dist/CNAME
- name: Publish dist to gh-pages
uses: rayluo/github-pages-overwriter@v1.2
with:
source-directory: dist