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
|
name: Docs
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
sudo yarn global add vuepress
- name: Build
run: |
sudo vuepress build
working-directory: ./docs
- 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/jonasrauber/eagerpy.git master:gh-pages
working-directory: ./docs/.vuepress/dist
|