Skip to content

Commit

Permalink
Upgrade upload-artifact action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendalRaoul committed Sep 12, 2024
1 parent fd87033 commit c545784
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand All @@ -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/[email protected]
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit c545784

Please sign in to comment.