Skip to content

Commit 0e2f329

Browse files
committed
Add basic action to build and push the website
1 parent 9d15936 commit 0e2f329

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy updated website
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build:
8+
steps:
9+
- name: Checkout gbdev/gbdev.github.io
10+
uses: actions/checkout@v2
11+
with:
12+
repository: gbdev/gbdev.github.io
13+
path: folder
14+
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12'
18+
19+
- working-directory: folder/
20+
run: |
21+
mkdir -m 700 ~/.ssh
22+
echo "${{ secrets.SSH_KEY_SECRET }}" > ~/.ssh/id_ed25519
23+
chmod 0600 ~/.ssh/id_ed25519
24+
git config --local user.name "GitHub Action"
25+
npx vuepress build list
26+
cp list/.vuepress/dist/* dist/ -r
27+
cp CNAME dist/
28+
npx gh-pages -d dist -b master

0 commit comments

Comments
 (0)