Files
vue-formkit-example/.github/workflows/ci.yaml
严浩 fa094e68ff
All checks were successful
/ test (push) Successful in 26s
/ surge (push) Successful in 24s
feat: 在 CI 工作流中添加对 unocss-fk 分支的支持
2024-11-22 18:05:49 +08:00

20 lines
564 B
YAML

# https://cn.vitejs.dev/guide/static-deploy
on:
push:
branches:
- main
- unocss-fk
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