Skip to content

Commit bf959ba

Browse files
Try the cwd command
1 parent 6ae84ba commit bf959ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ jobs:
2020
- name: Build docs bundle
2121
run: npm run build
2222

23+
- name: Init a new repository
24+
run: |
25+
cd docs/.vuepress/dist
26+
git init
27+
git add -A
28+
2329
- name: Commit changes
24-
run: cd docs/.vuepress/dist
2530
uses: EndBug/add-and-commit@master
2631
with:
2732
branch: "master"
33+
cwd: "./docs/.vuepress/dist"
2834
add: ". --dry-run"
2935
message: "Deploy docs"
3036
env:

0 commit comments

Comments
 (0)