Skip to content

IRAF Readthedocs generation #98

IRAF Readthedocs generation

IRAF Readthedocs generation #98

Workflow file for this run

name: IRAF Readthedocs generation
on:
push:
schedule:
- cron: '30 5 * * 1,3,5'
jobs:
create-rst:
runs-on: ubuntu-latest
env:
iraf: ${{ github.workspace }}/iraf/
TERM: ansi
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout latest IRAF master
uses: actions/checkout@v3
with:
repository: iraf-community/iraf
path: ${{ env.iraf }}
- name: Install IRAF binaries and PyRAF
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends iraf python3-pyraf python3-lxml python3-html5lib
ln -sf /usr/lib/iraf/bin ${iraf}bin
- name: Create ReStructuredText documents
run: |
python3 tools/irafdocs.py
- name: Push new docs
run: |
git config --global user.name '[bot] IRAF doc autoupdate'
git config --global user.email '[email protected]'
git add --all doc
git commit -m "Auto-updated IRAF documentation" || exit 0
git push