Skip to content

Add RVSAO documentation #110

Add RVSAO documentation

Add RVSAO documentation #110

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: Checkout external packages
run: |
rm -rf ${iraf}extern/*
git clone --depth=1 [email protected]:iraf-community/iraf-fitsutil.git ${iraf}extern/fitsutil
git clone --depth=1 [email protected]:iraf-community/iraf-sptable.git ${iraf}extern/sptable
git clone --depth=1 [email protected]:iraf-community/iraf-mscred.git ${iraf}extern/mscred
git clone --depth=1 [email protected]:iraf-community/iraf-nfextern.git ${iraf}extern/nfextern
git clone --depth=1 [email protected]:iraf-community/iraf-ctio.git ${iraf}extern/ctio
git clone --depth=1 [email protected]:iraf-community/iraf-xdimsum.git ${iraf}extern/xdimsum
mkdir -p ${iraf}extern/rvsao
curl http://tdc-www.harvard.edu/iraf/rvsao/rvsao-2.8.5.tar.gz | tar xzf - -C ${iraf}extern/rvsao --strip-components=1
- 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