update gtag #122
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_docs_job: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Dependencies | |
run: | | |
echo `python3 --version` | |
sudo apt-get install -y python-setuptools | |
python3 -m pip install --upgrade pip | |
python3 -m pip install setuptools | |
python3 -m pip install notebook | |
python3 -m pip install torch | |
python3 -m pip install matplotlib | |
sudo apt-get install -y yarn | |
id: build | |
- name: Add tutorials to Docs | |
run: | | |
cd tutorials | |
sh convert.sh | |
cd .. | |
- name: Build the Website | |
run: | | |
cd website | |
yarn | |
npm run build | |
- name: Check env | |
run: echo `which spinx-build` | |
- name: Build the docset | |
run: | | |
cd ./sphinx | |
pip install -r requirements.txt | |
make html | |
cd .. | |
- name: Get output time | |
run: echo "The time was ${{ steps.build.outputs.time }}" | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: website/build # The folder the action should deploy. | |