Checkpoint #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| - push | |
| - pull_request | |
| - workflow_dispatch | |
| jobs: | |
| ci-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - name: Configure Python | |
| run: | | |
| python3 -m pip install ivpm | |
| ivpm update -a | |
| ./packages/python/bin/python3 -m pip install wheel twine | |
| ./packages/python/bin/python3 -m pip install pip setuptools --upgrade | |
| export BUILD_NUM=$GITHUB_RUN_ID | |
| cd python | |
| ../packages/python/bin/python3 setup.py bdist_wheel --universal | |
| - name: Build Docs | |
| run: | | |
| make html | |
| touch doc/build/html/.nojekyll | |
| cp -r doc/build/html . | |
| - name: Deploy | |
| if: startsWith(github.ref, 'refs/heads/master') | |
| uses: JamesIves/github-pages-deploy-action@4.1.7 | |
| with: | |
| branch: gh-pages | |
| folder: html | |
| - name: Publish to PyPi | |
| if: startsWith(github.ref, 'refs/heads/master') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| packages-dir: python/dist/ | |