-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 921 Bytes
/
docs.yml
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
name: Pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: install ammico
run: |
pip install -e .
python -m pip install -r requirements-dev.txt
- name: set google auth
uses: 'google-github-actions/[email protected]'
with:
credentials_json: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}'
- name: get pandoc
run: |
sudo apt-get install -y pandoc
- name: Build documentation
run: |
cd docs
make html
- name: Push changes to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs # The folder the action should deploy.