Skip to content

Commit

Permalink
Only Python 3.11 on Ubuntu uploads artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
t-schn authored Dec 19, 2024
1 parent 5a885bd commit 7ad7648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ jobs:
twine check --strict dist/*
- name: Store the distribution files
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11'
with:
name: python-package-distributions
path: dist/
- name: Build documentation artifacts
run: |
poetry run poe build-docs
- name: Zip documentation
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11'
run: |
DOCS_VERSION=`poetry version -s`
mkdir _build_docs/dist
Expand All @@ -86,12 +86,12 @@ jobs:
popd
- name: Store the documentation artifacts for GitHub Pages
uses: actions/upload-pages-artifact@v3
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11'
with:
path: _build_docs/_build/html
- name: Store the zipped documentation
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11'
with:
name: zipped-documentation
path: _build_docs/dist/
Expand Down

0 comments on commit 7ad7648

Please sign in to comment.