File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,21 +11,32 @@ jobs:
1111 uses : actions/checkout@v2
1212 with :
1313 repository : gbdev/gbdev.github.io
14- path : folder
14+ path : folder/repo
15+ - name : Checkout gbdev/gbdev.github.io master
16+ uses : actions/checkout@v2
17+ with :
18+ repository : gbdev/gbdev.github.io
19+ ref : master
20+ path : folder/build
1521
1622 - uses : actions/setup-node@v1
1723 with :
1824 node-version : ' 12'
1925
2026 - working-directory : folder/
2127 run : |
28+ cd repo
29+ npx vuepress build list
30+ mkdir dist
31+ cp list/.vuepress/dist/* dist/ -r
32+ cp CNAME dist/
33+ cd ..
34+ cp -a repo/dist/. build/
35+ cd build
2236 mkdir -m 700 ~/.ssh
2337 echo "${{ secrets.SSH_KEY_SECRET }}" > ~/.ssh/id_ed25519
2438 chmod 0600 ~/.ssh/id_ed25519
2539 git config --local user.name "GitHub Action"
2640 git config --global user.email "community@gbdev.io"
27- npx vuepress build list
28- mkdir dist
29- cp list/.vuepress/dist/* dist/ -r
30- cp CNAME dist/
31- npx gh-pages -d dist -b master
41+ git add .
42+ git commit -m "Update build" && git push || :
You can’t perform that action at this time.
0 commit comments