CI: Surge
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
# https://cn.vitejs.dev/guide/static-deploy
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -5,6 +6,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
concurrency:
|
||||||
|
group: 'ci'
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cache-and-install:
|
cache-and-install:
|
||||||
@ -27,10 +32,18 @@ jobs:
|
|||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install # --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
env:
|
||||||
|
VITE_BUILD_COMMIT: ${{ github.sha | slice(0, 7) }}
|
||||||
|
|
||||||
|
# https://github.com/Tencent/tdesign-vue-next/pull/1604#issuecomment-1236244550
|
||||||
|
- name: Surge
|
||||||
|
# pnpx surge token
|
||||||
|
run: |
|
||||||
|
pnpx surge dist vue-ts-example.surge.sh --token ${{ secrets.SURGE_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user