Skip to content

Commit 01dca66

Browse files
committed
Adjust cd script
1 parent a5fb3fe commit 01dca66

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ jobs:
1919
run: npm install -g pnpm
2020
- name: Install dependencies
2121
run: pnpm install --frozen-lockfile=false
22-
- name: Build and deploy
23-
run: pnpm run deploy
24-
- uses: JamesIves/github-pages-deploy-action@v4
25-
with:
26-
branch: gh-pages
27-
folder: public
28-
target-folder: public
29-
single-commit: true
3022
- name: Publish
3123
id: publish
3224
uses: JS-DevTools/npm-publish@v1
@@ -35,3 +27,11 @@ jobs:
3527
- if: steps.publish.outputs.type != 'none'
3628
run: |
3729
echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}"
30+
- name: Deploy
31+
run: pnpm run deploy
32+
- uses: JamesIves/github-pages-deploy-action@v4
33+
with:
34+
branch: gh-pages
35+
folder: public
36+
target-folder: public
37+
single-commit: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"build:js": "node esbuild.mjs -m",
5656
"clean": "del-cli build tmp manual/resources manual/assets/**/dist public",
5757
"copy": "copyfiles -u 2 \"demo/static/**/*\" public/demo",
58-
"deploy": "run-s test copy doc gzip",
58+
"deploy": "run-s copy gzip",
5959
"doc": "esdoc",
6060
"gzip": "gzipper c public",
6161
"hugo": "hugo -s manual --minify",

0 commit comments

Comments
 (0)