Skip to content

Commit 8ecf53f

Browse files
Force deploy the repo using the Github action
1 parent d6b0aee commit 8ecf53f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ jobs:
2020
- name: Build docs bundle
2121
run: npm run build
2222

23-
- name: Deploy the website to the master branch
23+
- name: Init a new repository
2424
run: |
2525
cd docs/.vuepress/dist
2626
git init
27-
git add -A
28-
git commit -m "Deploy docs"
29-
git push -f [email protected]:mojs/mojs.github.io.git master
27+
28+
- name: Commit changes
29+
uses: EndBug/add-and-commit@master
30+
with:
31+
branch: "master"
32+
cwd: "./docs/.vuepress/dist"
33+
add: ". --force"
34+
message: "Deploy docs"
3035
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)