Skip to content

Commit

Permalink
buid
Browse files Browse the repository at this point in the history
  • Loading branch information
extedcouD committed Jul 9, 2024
1 parent c8cc848 commit 4f6261c
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f6261c

Please sign in to comment.