Skip to content

try Python 3.9.21

try Python 3.9.21 #124

Workflow file for this run

name: Documentation
on:
push:
tags:
- "v*.*.*"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9.21
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Generate Docs
working-directory: ./Textbook
run: |
make html
touch _build/html/.nojekyll
- name: Publish Docs Master
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: Textbook/_build/html/ # The folder the action should deploy.
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
# - name: Build LaTeX
# run: make latex
# - name: Build PDF
# uses: xu-cheng/latex-action@v2
# with:
# working_directory: _build/latex
# root_file: AguaClaraTextbook.tex
# - name: Upload Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: _build/latex/AguaClaraTextbook.pdf
# asset_name: AguaClaraTextbook.pdf
# asset_content_type: application/pdf