Skip to content

Commit

Permalink
Move to non-deprecated github actions (#194)
Browse files Browse the repository at this point in the history
* bump to latest checkout action

* upload artifact job to v4

* Give source dist uploaded artifact a name
  • Loading branch information
ajgajg1134 authored Sep 16, 2024
1 parent 7f9e388 commit cf75054
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
packages: write
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Include all history and tags
with:
fetch-depth: 0
Expand All @@ -27,15 +27,15 @@ jobs:
pip install wheel
pip wheel --no-deps -w dist .
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: dist/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Include all history and tags
with:
fetch-depth: 0
Expand All @@ -49,8 +49,9 @@ jobs:
run: |
python setup.py sdist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz

upload_pypi:
Expand All @@ -60,7 +61,7 @@ jobs:
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
name: sdist
path: dist

- uses: pypa/gh-action-pypi-publish@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releasenote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Include all history and tags
with:
fetch-depth: 0
Expand Down

0 comments on commit cf75054

Please sign in to comment.