forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to handle the fact that with multiple artificats, they're unpacked into a directory for each. Therefore we need steps to consolidate into the dist/ directory.
- Loading branch information
1 parent
94ef0e0
commit df6f7c5
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,9 @@ jobs: | |
- name: Save built packages as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ runner.os }}-${{ steps.setup.outputs.python-version }} | ||
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }} | ||
path: dist/ | ||
if-no-files-found: error | ||
retention-days: 5 | ||
|
||
publish: | ||
|
@@ -48,8 +49,11 @@ jobs: | |
steps: | ||
- name: Download packages | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: ./dist | ||
|
||
- name: Consolidate packages for upload | ||
run: | | ||
mkdir dist | ||
cp packages-*/* dist/ | ||
- name: Publish Package | ||
uses: pypa/[email protected] | ||
|