Skip to content

Commit cc2adcc

Browse files
committed
demo
1 parent ea292a1 commit cc2adcc

File tree

2 files changed

+14
-9954
lines changed

2 files changed

+14
-9954
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ jobs:
3535
# 设定安装工具为 yarn
3636
# - name: Global install Yarn 🔨
3737
# run: npm install -g yarn
38-
# 安装依赖
39-
# - name: Install dependencies 📦️
40-
# run: npm install
38+
# # 安装依赖
39+
- name: Install dependencies 📦️
40+
run: npm install
41+
# 执行部署
42+
- name: 部署
43+
# 这个 action 会根据配置自动推送代码到指定分支
44+
uses: JamesIves/github-pages-deploy-action@releases/v3
45+
with:
46+
# 指定密钥,即在第一步中设置的
47+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
48+
# 指定推送到的远程分支
49+
BRANCH: gh-pages
50+
# 指定构建之后的产物要推送哪个目录的代码
51+
FOLDER: docs
4152
- name: Print Env 📄
4253
run: |
4354
echo "node"

0 commit comments

Comments
 (0)