Skip to content

Commit

Permalink
Merge pull request #1728 from phargogh/task/1718-invest-3.14.3-release
Browse files Browse the repository at this point in the history
Fixing an artifact name in release automation
  • Loading branch information
dcdenu4 authored Jan 10, 2025
2 parents 75c47b6 + e5a3065 commit 4af6cd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ jobs:

- uses: actions/upload-artifact@v4
with:
# NOTE: if you change this name, make sure the source distribution
# pattern defined in .github/workflows/release-part-2.yml will still
# grab it!
name: Source distribution ${{ matrix.os }} ${{ matrix.python-version }}
path: dist

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release-part-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,18 @@ jobs:
for artifact in Workbench-Windows-binary \
Workbench-macOS-binary \
InVEST-sample-data \
InVEST-user-guide \
"Source distribution"
InVEST-user-guide
do
gh run download $RUN_ID --dir artifacts --name "$artifact"
done
# We build one sdist per combination of OS and python version, so just
# download and unzip all of them into an sdists directory so we can
# just grab the first one. This approach is more flexible to changes
# in OS and python versions than just statically defining the artifact name.
gh run download $RUN_ID --dir sdists --pattern "Source*"
cp "$(find sdists -name '*.tar.gz' -print -quit)" artifacts/
- name: Create Github release
run: |
# Copy the history notes for this version into the release message
Expand Down

0 comments on commit 4af6cd2

Please sign in to comment.