Skip to content

Commit

Permalink
Fix workflow: option for parallel in make and error in publish to PyPI (
Browse files Browse the repository at this point in the history
#303)

This fixes the current problems in the workflow:
- The option for `make` to be parallel was `--jobs`
- The version for publishing has now a different release tag, updated
  • Loading branch information
m-mirz authored Jun 10, 2024
2 parents a95d999 + 4857625 commit 290aaca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:

- name: Make reference docs
run: |
make --parallel $(nproc) -C build docs
make --parallel $(nproc) -C build docs_cxx
make --jobs $(nproc) -C build docs
make --jobs $(nproc) -C build docs_cxx
- name: Copy reference
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
run: python3 -m build --sdist --outdir dist/

- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1.8.14
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true

- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1.8.14
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
password: ${{ secrets.PYPI_API_TOKEN }}

Expand All @@ -55,14 +55,14 @@ jobs:
output-dir: dist

- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1.8.14
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true

- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1.8.14
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 290aaca

Please sign in to comment.