Skip to content

Commit 750501e

Browse files
authored
feat: add checkout submodules (#2)
* feat: add checkout submodules * fix: update action
1 parent 2ee73f2 commit 750501e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/update.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: site
16+
17+
- run: /usr/bin/git submodule init
18+
- run: /usr/bin/git submodule update --remote
19+
20+
- name: Commit to GitHub
21+
uses: EndBug/add-and-commit@v7
22+
with:
23+
add: docs-cn
24+
branch: site
25+
message: "docs(cn): update submodule"

0 commit comments

Comments
 (0)