File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments