Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Nov 19, 2024
1 parent d21d784 commit a392338
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -385,21 +385,27 @@ 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'
shell: pwsh
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
Expand Down

0 comments on commit a392338

Please sign in to comment.