-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from DiamondLightSource/fix_release_process
Fix the release CI after bumping upload/download artifacts
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 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 |
---|---|---|
|
@@ -218,12 +218,16 @@ jobs: | |
- name: Download wheel and lockfiles | ||
uses: actions/[email protected] | ||
with: | ||
path: artifacts/ | ||
pattern: "*dist*" | ||
|
||
- name: Rename lockfiles and dist | ||
run: | | ||
mv lockfiles-${{ env.CONTAINER_PYTHON }}-dist-${{ github.sha }} lockfiles | ||
mv ${{ env.DIST_WHEEL_PATH }} dist | ||
- name: Fixup blank lockfiles | ||
# Github release artifacts can't be blank | ||
run: for f in ${{ env.DIST_LOCKFILE_PATH }}/*; do [ -s $f ] || echo '# No requirements' >> $f; done | ||
run: for f in lockfiles/*; do [ -s $f ] || echo '# No requirements' >> $f; done | ||
|
||
- name: Github Release | ||
# We pin to the SHA, not the tag, for security reasons. | ||
|
@@ -232,8 +236,8 @@ jobs: | |
with: | ||
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }} | ||
files: | | ||
${{ env.DIST_WHEEL_PATH }}/* | ||
${{ env.DIST_LOCKFILE_PATH }}/* | ||
dist/* | ||
lockfiles/* | ||
generate_release_notes: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|