From 92ad6889a26fc83a60599cf6aa54f8e6d6b4da15 Mon Sep 17 00:00:00 2001 From: Julian Benda Date: Mon, 22 Jan 2024 02:23:05 +0100 Subject: [PATCH] Update Release.yml --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57ea0382..c283433a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,12 +24,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + mkdir artifacts ID=$(gh run list -b master --limit 1 --json databaseId | jq '.[0].databaseId') - gh run download $ID -n linux-cl -n linux-lib -n linux-clib -n unreal -n macos-cl -n macos-lib -n macos-clib -n win64-cl -n win64-lib -n win64-clib -n python-package-distribution - mv python-package-distribution dist + gh run download $ID -D artifacts -n linux-cl -n linux-lib -n linux-clib -n unreal -n macos-cl -n macos-lib -n macos-clib -n win64-cl -n win64-lib -n win64-clib -n python-package-distribution + mv artifacts/python-package-distribution dist - name: Zip + working-directory: ${{github.workspace}}/artifacts run: | - for f in linux-cl linux-lib linux-clib unreal macos-cl macos-lib macos-clib win64-cl win64-lib win64-clib; do zip -r $f $f; done + for f in linux-cl linux-lib linux-clib unreal macos-cl macos-lib macos-clib win64-cl win64-lib win64-clib; do zip -r ../$f.zip $f; done - name: List run: tree - name: Publish to PyPI