Fix issue in guide compilation (#723) #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 npm | |
sudo npm install vuepress -g | |
sudo npm install vue-template-compiler | |
- name: Build | |
run: | | |
export NODE_OPTIONS=--openssl-legacy-provider | |
sudo vuepress build | |
working-directory: ./guide | |
- name: Push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sudo git init | |
sudo git add -A | |
sudo git commit -m 'deploy' | |
sudo git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/bethgelab/foolbox.git master:gh-pages | |
working-directory: ./guide/.vuepress/dist |