From 4f6261c0a1446b538b12c2c72219a536a5072a9f Mon Sep 17 00:00:00 2001 From: extedcouD <89811591+extedcouD@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:40:52 +0530 Subject: [PATCH] buid --- .github/workflows/main.yml | 45 ++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e85ba64..a1b063e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,41 +37,44 @@ jobs: - name: Create binary run: node create-build.js - - name: Compress Windows binary - run: | - mkdir -p release - zip -r release/my-binary-file-windows.zip backend-editor/component-modifier/my-binary-file-windows.exe + - name: Archive Windows binary + uses: actions/upload-artifact@v3 + with: + name: component-modifier-binary-win + path: backend-editor/component-modifier/my-binary-file-windows.exe - - name: Compress Linux binary - run: | - mkdir -p release - zip -r release/my-binary-file-linux.zip backend-editor/component-modifier/my-binary-file-linux + - name: Archive Linux binary + uses: actions/upload-artifact@v3 + with: + name: component-modifier-binary-linux + path: backend-editor/component-modifier/my-binary-file-linux - - name: Compress Mac binary - run: | - mkdir -p release - zip -r release/my-binary-file-macos.zip backend-editor/component-modifier/my-binary-file-macos + - name: Archive Mac binary + uses: actions/upload-artifact@v3 + with: + name: component-modifier-binary-macos + path: backend-editor/component-modifier/my-binary-file-macos - name: Upload Windows binary to release uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: release/my-binary-file-windows.zip - asset_name: my-binary-file-windows.zip - asset_content_type: application/zip + asset_path: backend-editor/component-modifier/my-binary-file-windows.exe + asset_name: my-binary-file-windows.exe + asset_content_type: application/octet-stream - name: Upload Linux binary to release uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: release/my-binary-file-linux.zip - asset_name: my-binary-file-linux.zip - asset_content_type: application/zip + asset_path: backend-editor/component-modifier/my-binary-file-linux + asset_name: my-binary-file-linux + asset_content_type: application/octet-stream - name: Upload Mac binary to release uses: actions/upload-release-asset@v1 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: release/my-binary-file-macos.zip - asset_name: my-binary-file-macos.zip - asset_content_type: application/zip + asset_path: backend-editor/component-modifier/my-binary-file-macos + asset_name: my-binary-file-macos + asset_content_type: application/octet-stream