Skip to content

Commit aff431f

Browse files
committed
Directly Compress-Archive
Use New-Item and -Force Compress-Archive
1 parent 33b365a commit aff431f

File tree

4 files changed

+8
-3049
lines changed

4 files changed

+8
-3049
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Build Ubuntu and MacOS
22

33

4-
on: [push]
4+
#on: [push]
5+
on: [release]
56

67
jobs:
78
build:

.github/workflows/upload-pypi-source.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Upload source distribution to PyPI
22

3-
on: [push, pull_request]
3+
#on: [push, pull_request]
4+
on: [release]
45

56
jobs:
67
upload_source_dist:

.github/workflows/windows-installer.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
run: |
2929
pip install pep517 wheel
3030
pip wheel --use-pep517 --only-binary cbor2 --extra-index-url https://download.chia.net/simple/ -f ${{ github.workspace }} --wheel-dir=${{ github.workspace }}\electron-wix\blockchain ${{ github.workspace }}\.
31-
mkdir ${{ github.workspace }}\electron-wix\final
32-
cd ${{ github.workspace }}\electron-wix\blockchain
33-
Compress-Archive -Path wheels\ -DestinationPath ${{ github.workspace }}\electron-wix\final\windows-wheels.zip
31+
New-Item -ItemType Directory -Path ${{ github.workspace }}\electron-wix\final
32+
Compress-Archive -Path ${{ github.workspace }}\electron-wix\blockchain\* -DestinationPath ${{ github.workspace }}\electron-wix\final\windows-wheels.zip -Force
33+
Write-Host "windows-wheels.zip added to Artifacts"
34+
dir ${{ github.workspace }}\electron-wix\final
3435
3536
- name: Install electron-packager
3637
run: |

0 commit comments

Comments
 (0)