Skip to content

Commit

Permalink
Updated GitHub action to use latest action versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed Feb 12, 2024
1 parent 4d323d5 commit 6ff2753
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
sudo apt install -y libudev-dev libusb-1.0-0-dev
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -73,7 +73,7 @@ jobs:
working-directory: dist # ensure use the installed package

- name: Upload python source package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
Expand All @@ -91,7 +91,7 @@ jobs:

steps:
- name: Download sdist
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist/
Expand All @@ -117,9 +117,9 @@ jobs:
package-dir: ${{ steps.find_sdist_filename.outputs.filename }}

- name: Upload python wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl
if-no-files-found: error

Expand All @@ -136,23 +136,24 @@ jobs:

steps:
- name: Download python sdist artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist/

- name: Download python wheel artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheels-*
merge-multiple: true
path: dist/

- name: Display artifacts
shell: bash
run: ls dist/*

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@v1.8.6
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
print-hash: true

Expand Down

0 comments on commit 6ff2753

Please sign in to comment.