Skip to content

Commit df9bf3b

Browse files
author
Dipak Sarkar
committed
updated docs auto push script
1 parent cb84ca8 commit df9bf3b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build docs and push to docs branch
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: Build and Push
12+
steps:
13+
- name: git-checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Install dependencies
17+
run: yarn
18+
19+
# The build command of your docs
20+
- run: yarn build
21+
- run: yarn docs:build
22+
23+
- name: Push
24+
uses: s0/git-publish-subdir-action@develop
25+
env:
26+
REPO: self
27+
BRANCH: docs # The branch name where you want to push the assets
28+
FOLDER: docs/.vuepress/dist # The directory where your assets are generated
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
30+
MESSAGE: "Build: ({sha}) {msg}" # The commit message

0 commit comments

Comments
 (0)