diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1c40f64 --- /dev/null +++ b/.github/workflows/main.yml @@ -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.