-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (32 loc) · 925 Bytes
/
vuepress.yaml
File metadata and controls
37 lines (32 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Script based on following guide:
# https://kaizendorks.github.io/2020/04/16/vuepress-github-actions/
name: Deploy VuePress static site to GitHub pages
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate static vuepress files
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: ./deploy.sh
- name: Commit generated files
run: |
cd gh-pages
echo "thingset.io" > CNAME
git init
git add -A
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: Force-push to destination branch
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./gh-pages