Files
vue-formkit-example/.github/workflows/ci.yaml
mac-mini-2024 fa04c668c6
All checks were successful
/ surge (push) Successful in 51s
feat: 更新 CI 工作流,使用 npx 执行 vite 构建命令
2024-11-20 22:11:19 +08:00

19 lines
546 B
YAML

# https://cn.vitejs.dev/guide/static-deploy
on:
push:
branches:
- main
jobs:
surge:
runs-on: ubuntu-latest
steps:
- uses: yanhao98/composite-actions/setup-node-environment@main
- name: deploy
run: |
npx vite build
export DEPLOY_DOMAIN=https://vue-formkit-example.oo1.dev
cp dist/index.html dist/200.html
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token d843de16b331c626f10771245c56ed93 # npx surge token
echo the preview URL is $DEPLOY_DOMAIN