diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 62093800e..0c8dae42e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -243,11 +243,11 @@ jobs: manylinux: ${{ matrix.platform.manylinux }} - name: Zip wheels run: | - ZIP_NAME="kaspa-python-sdk-macos-${{ matrix.platform.target }}-${{ github.event.release.tag_name }}" + ZIP_NAME="kaspa-python-sdk-${{ matrix.platform.target }}-${{ github.event.release.tag_name }}" cd python/target/${{ matrix.platform.target }} - mv dist "$ZIP_NAME" - zip -r "${ZIP_NAME}.zip" "$ZIP_NAME" + sudo mv dist "$ZIP_NAME" + sudo zip -r "${ZIP_NAME}.zip" "$ZIP_NAME" pwd ls -lah @@ -359,9 +359,9 @@ jobs: strategy: matrix: platform: - - runner: macos-12 + - runner: macos-latest target: x86_64-apple-darwin - - runner: macos-14 + - runner: macos-latest target: aarch64-apple-darwin - runner: windows-latest target: x64 @@ -385,10 +385,13 @@ jobs: run: | ZIP_NAME="kaspa-python-sdk-${{ matrix.platform.target }}-${{ github.event.release.tag_name }}" cd python/target/${{ matrix.platform.target }} - mv dist "$ZIP_NAME" - zip -r "${ZIP_NAME}.zip" "$ZIP_NAME" + + sudo mv dist "$ZIP_NAME" + sudo zip -r "${ZIP_NAME}.zip" "$ZIP_NAME" + pwd ls -lah + echo "archive=${ZIP_NAME}" >> $GITHUB_ENV - name: Zip wheels (Windows) if: runner.os == 'Windows' @@ -396,10 +399,13 @@ jobs: run: | $ZIP_NAME = "kaspa-python-sdk-${{ matrix.platform.target }}-${{ github.event.release.tag_name }}" cd python/target/${{ matrix.platform.target }} + Rename-Item dist $ZIP_NAME + Compress-Archive -Path $ZIP_NAME -DestinationPath "$ZIP_NAME.zip" pwd Get-ChildItem -Recurse + echo "archive=$ZIP_NAME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Upload release asset uses: actions/upload-release-asset@v1