From 35628bf62638c6c60028c9b320405ececc0607a5 Mon Sep 17 00:00:00 2001 From: Dominic Oram Date: Mon, 8 Jan 2024 11:08:20 +0000 Subject: [PATCH] Rename lockfiles and dist after downloading for release --- .github/workflows/code.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 8e3a2709..a09308be 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -216,12 +216,16 @@ jobs: - name: Download wheel and lockfiles uses: actions/download-artifact@v4.1.0 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. @@ -230,8 +234,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 }}