Files
triton/.github/workflows/build-website.yml
2021-07-27 17:57:02 -07:00

42 lines
820 B
YAML

name: Build Website
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Trigger website build'
schedule:
- cron: "0 0 * * *"
jobs:
Build-Website:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Triton
run: |
alias python='python3'
cd python
pip3 install -e .
- name: Build docs
run: |
cd docs
make html
- name: Publish docs
run: |
git checkout gh-pages
sh ./update-website.sh
git remote set-url origin git@github.com:ptillet/triton.git
git push
displayName: Publish docs