Skip to content

Commit

Permalink
merge docs build into release
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Nov 10, 2022
1 parent 34c569e commit 78ce6d6
Showing 1 changed file with 9 additions and 32 deletions.
41 changes: 9 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,6 @@ jobs:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: '**/setup.py'

- name: Build package
run: |
python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools build setuptools setuptools_scm wheel
python${{ matrix.python-version }} -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
needs:
- deploy

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -54,13 +24,14 @@ jobs:

- name: Install dependencies
run: |
python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools setuptools_scm
python${{ matrix.python-version }} -m pip install --upgrade pip pip-tools build setuptools setuptools_scm wheel
python${{ matrix.python-version }} -m piptools sync --user requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt
# Using non-editable install for testing building of MANIFEST files
python${{ matrix.python-version }} -m pip install --no-deps .
- name: Build
- name: Build package and docs
run: |
python${{ matrix.python-version }} -m build
cd docs_rst
python${{ matrix.python-version }} featurizer_summary.py > featurizer_summary.rst
python${{ matrix.python-version }} dataset_summary.py > dataset_summary.rst
Expand All @@ -75,3 +46,9 @@ jobs:
git add .
git commit -a -m "update docs"
git push
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 78ce6d6

Please sign in to comment.