From b2648714bc709c8bfea7a8b19a156347470ba371 Mon Sep 17 00:00:00 2001 From: Gwendal Raoul Date: Thu, 12 Sep 2024 10:52:58 +0200 Subject: [PATCH] Upgrade upload-artifact action to v4 --- .github/workflows/python-package.yml | 10 +++++----- .github/workflows/sphinx.yml | 11 +++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 008de6e..8d4e014 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -61,7 +61,7 @@ jobs: - name: Set Version for PR if: ${{ github.event_name == 'pull_request' }} run: echo "VERSION=PR_${{ github.event.pull_request.number }}" >> $GITHUB_ENV - + - name: Set Version for manual triggering if: ${{ github.event_name == 'workflow_dispatch' }} run: echo "VERSION=${{ github.event.inputs.version_name }}" >> $GITHUB_ENV @@ -72,12 +72,12 @@ jobs: - name: Build the wheel run: python setup.py sdist bdist_wheel - + - name: Save produced wheel name and path run: echo "WHEEL_FILE=$(ls dist/*-py3-none-any.whl)" >> $GITHUB_ENV - + - name: Store artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: ${{ env.WHEEL_FILE }} @@ -99,7 +99,7 @@ jobs: user: __token__ password: ${{ secrets.PYPI_TEST_PWD }} repository_url: https://test.pypi.org/legacy/ - + - name: Publish package to PyPI for release if: ${{ github.event_name == 'release' }} uses: pypa/gh-action-pypi-publish@v1.4.1 diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 8a2a421..d8d3a26 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -11,24 +11,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup python uses: actions/setup-python@v2 with: python-version: '3.7' - + - name: Install pip packages run: pip install sphinx==4.2.0 sphinx-rtd-theme==0.5.1 - + - name: Insatll package requirement run: pip install -r requirements.txt - + - name: Build the doc run: | cd docs make html - - - uses: actions/upload-artifact@v1 + + - uses: actions/upload-artifact@v4 with: name: DocumentationHTML path: docs/_build/html/