Skip to content

Commit

Permalink
Create .github/workflows/main.yml
Browse files Browse the repository at this point in the history
Adds doc build script.
  • Loading branch information
brianjo authored Mar 6, 2023
1 parent 1a64e6f commit 4b17d3b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 -r requirements.txt
sudo apt-get install -y yarn
id: build
- name: Build the Website
run: |
yarn
yarn build
- 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: build # The folder the action should deploy.

0 comments on commit 4b17d3b

Please sign in to comment.