diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..88c71f8 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,32 @@ +# This workflow will install Python dependencies, and generate documentation. + +name: ccdutils documentation + +on: + push: + branches: + - main + +jobs: + documentation: + name: Generate documentation + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + - name: Set up python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - run: | + pip install -r dev-requirements.txt + - run: | + cd doc + make html + - name: Deploy pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc/_build/html