Debian Codegraph @

.github/workflows/docs.yml

raw
1 name: Docs
2
3 on:
4 push:
5 branches:
6 - master
7
8 jobs:
9 vuepress:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
13 - name: Install vuepress
14 run: |
15 sudo apt update
16 sudo apt install yarn
17 sudo yarn global add vuepress
18 - name: Build
19 run: |
20 sudo vuepress build
21 working-directory: ./docs
22 - name: Push
23 env:
24 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 run: |
26 sudo git init
27 sudo git add -A
28 sudo git commit -m 'deploy'
29 sudo git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/jonasrauber/eagerpy.git master:gh-pages
30 working-directory: ./docs/.vuepress/dist