-
-
Notifications
You must be signed in to change notification settings - Fork 437
34 lines (32 loc) · 854 Bytes
/
guide.yml
File metadata and controls
34 lines (32 loc) · 854 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
name: Guide
on:
push:
branches:
- master
jobs:
vuepress:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install vuepress
run: |
sudo apt update
sudo apt install yarn -y
yarn global add vuepress
yarn add vue-template-compiler
- name: Build
run: |
export NODE_OPTIONS=--openssl-legacy-provider
vuepress build
working-directory: ./guide
- name: Push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git init
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add -A
git commit -m 'deploy'
git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/bethgelab/foolbox.git master:gh-pages
working-directory: ./guide/.vuepress/dist