Skip to content

Commit 5327709

Browse files
committed
Stop using gh-pages and manually move the built files
1 parent 6f1ad56 commit 5327709

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff 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 || :

0 commit comments

Comments
 (0)