Skip to content

Merge pull request #4 from purduesigbots/🐛Remove-deploy-on-PR #255

Merge pull request #4 from purduesigbots/🐛Remove-deploy-on-PR

Merge pull request #4 from purduesigbots/🐛Remove-deploy-on-PR #255

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build and Deploy
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Pip Installer
uses: BSFishy/pip-action@v1
with:
packages: jinja2 Pygments
- name: Install Doxygen
run: sudo sh -c 'echo deb http://cz.archive.ubuntu.com/ubuntu focal main universe >> /etc/apt/sources.list' && sudo apt-get update && sudo apt-get install -y doxygen
- name: Checkout
uses: actions/[email protected]
- name: Checkout m.css
uses: Mushus/[email protected]
with:
submodulePath: ./m.css
- name: Checkout pros
uses: Mushus/[email protected]
with:
submodulePath: ./pros
- name: Generate Documentation
run: |
python3 ./m.css/documentation/doxygen.py --templates templates ./conf.py
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: output # The folder the action should deploy.