Skip to content

Workflow file for this run

name: automated builds of html, reqif, and pdf
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule: # 12AM daily
- cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
git clone https://github.com/strictdoc-project/strictdoc/
python -m pip install strictdoc/[development]
- name: Install PDF (sphinx, latex et al) dependencies
run: |
python -m pip install sphinx
sudo apt update -y
sudo apt install -y texlive latexmk texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra texlive-luatex texlive-xetex
- name: Run strictdoc Build Scripts
run: |
bash -x runme
bash -x toreqif.sh
- name: Run paper build script
run: |
bash -x topaper.sh
- name: Upload html
uses: actions/upload-artifact@v3
with:
name: html-pages
path: docs/html/
- name: Upload reqif
uses: actions/upload-artifact@v3
with:
name: reqif-export
path: docs/html/vcr-experiment.reqif
- name: Upload pdf (paper)
uses: actions/upload-artifact@v3
with:
name: the_paper
path: paper/build/latex/hdvcrsgw.pdf
- name: (optional) Deploy to GitHub Pages (not on PRs or nightlies)
uses: Cecilapp/GitHub-Pages-deploy@v3
if: ${{ github.event_name != 'pull_request' && github.event_name != 'schedule' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: docs/html
email: [email protected]
branch: gh-pages # optional
jekyll: no # optional