Skip to content

Commit

Permalink
Merge pull request #67 from pytroll/dependabot/github_actions/actions…
Browse files Browse the repository at this point in the history
…/download-artifact-4

Bump actions/download-artifact from 3 to 4
  • Loading branch information
djhoese committed Dec 19, 2023
2 parents d5b942e + 86a4a67 commit adfa31c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Expand Up @@ -8,4 +8,4 @@ updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "monthly"
33 changes: 26 additions & 7 deletions .github/workflows/deploy.yaml
Expand Up @@ -22,7 +22,7 @@ jobs:
python -m build -s
- name: Upload sdist to build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
Expand All @@ -36,12 +36,16 @@ jobs:
include:
- os: windows-2019
cibw_archs: "AMD64 ARM64"
artifact_name: "win"
- os: macos-11
cibw_archs: "x86_64 arm64"
artifact_name: "mac"
- os: "ubuntu-20.04"
cibw_archs: "aarch64"
artifact_name: "ubuntu-aarch"
- os: "ubuntu-20.04"
cibw_archs: "x86_64"
artifact_name: "ubuntu-x86_64"

steps:
- uses: actions/checkout@v4
Expand All @@ -61,24 +65,39 @@ jobs:
CIBW_ARCHS: "${{ matrix.cibw_archs }}"
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.artifact_name }}
path: ./wheelhouse/*.whl

upload_to_pypi:
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
steps:
- name: Download sdist artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist
- name: Download wheels artifact
uses: actions/download-artifact@v3
- name: Download wheels artifact - win
uses: actions/download-artifact@v4
with:
name: wheels
name: wheels-win
path: dist
- name: Download wheels artifact - mac
uses: actions/download-artifact@v4
with:
name: wheels-mac
path: dist
- name: Download wheels artifact - ubuntu aarch
uses: actions/download-artifact@v4
with:
name: wheels-ubuntu-aarch
path: dist
- name: Download wheels artifact - ubuntu x86_64
uses: actions/download-artifact@v4
with:
name: wheels-ubuntu-x86_64
path: dist
- name: Publish package to Test PyPI
if: github.event.action != 'published' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
Expand Down

0 comments on commit adfa31c

Please sign in to comment.