Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

ci/cd stuff

ci/cd stuff #1

Workflow file for this run

name: Extras Workflow
on: push
jobs:
make_docs:
runs-on: ubuntu-latest
name: Build Docs
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
architecture: x64
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: sudo apt update
- run: sudo apt install texlive-latex-recommended texlive-latex-extra texlive-pictures pandoc rename latexmk
- name: Install requirements
run: pip install -r docs/requirements.txt
- run: cd docs && make latexpdf
- run: mv docs/_build/latex/*.pdf docs/_build/latex/Burnt_Toaster_Robot_Manual.pdf
- uses: actions/upload-artifact@v2
with:
name: Tidal_Force_Robot_Manual
path: docs/_build/latex/Burnt_Toaster_Robot_Manual.pdf
publish:
# Only run on tags
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
name: Publish
# needs: [make_docs, make_dashboard]
needs: [make_docs]
steps:
- uses: actions/download-artifact@v2
with:
name: Tidal_Force_Robot_Manual
- name: Upload Docs to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.pdf"
tag: ${{ github.ref }}
overwrite: true
prerelease: true
body: "Tidal Force Robotics, Automated with github ci/cd."
file_glob: true