-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e199bba
commit f9244e1
Showing
3 changed files
with
28 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,11 +38,6 @@ jobs: | |
cd desktopApp | ||
npm install | ||
- name: Install zip utility | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y zip | ||
- name: Build for macOS | ||
run: | | ||
cd desktopApp | ||
|
@@ -58,88 +53,33 @@ jobs: | |
cd desktopApp | ||
npm run package-linux | ||
- name: Create ZIP for macOS Build | ||
run: | | ||
cd desktopApp/release-builds/ | ||
sudo zip -r /desktopApp-mac.zip ./Robosats-darwin-x64/* | ||
- name: Create ZIP for Windows Build | ||
run: | | ||
cd desktopApp/release-builds/ | ||
sudo zip -r /desktopApp-win.zip ./Robosats-win32-ia32/* | ||
- name: Create ZIP for Linux Build | ||
run: | | ||
cd desktopApp/release-builds/ | ||
sudo zip -r /desktopApp-linux.zip ./Robosats-linux-x64/* | ||
- name: 'Get Commit Hash' | ||
id: commit | ||
uses: pr-mpt/actions-commit-hash@v3 | ||
|
||
- name: 'Upload mac-build Release Artifact (for Release)' | ||
uses: actions/upload-artifact@v4 | ||
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release) | ||
with: | ||
name: robosats-desktop-${{ inputs.semver }}-mac.zip | ||
path: desktopApp/release-builds/desktopApp-mac.zip | ||
|
||
- name: 'Upload linux-build Release Artifact (for Release)' | ||
uses: actions/upload-artifact@v4 | ||
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release) | ||
with: | ||
name: robosats-desktop-${{ inputs.semver }}-linux.zip | ||
path: desktopApp/release-builds/desktopApp-linux.zip | ||
|
||
- name: 'Upload win-build Release Artifact (for Release)' | ||
uses: actions/upload-artifact@v4 | ||
if: inputs.semver != '' # only if this workflow is called from a push to tag (a Release) | ||
with: | ||
name: robosats-desktop-${{ inputs.semver }}-win.zip | ||
path: desktopApp/release-builds/desktopApp-win.zip | ||
|
||
|
||
- name: Create Pre-release | ||
id: create_release | ||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release) | ||
uses: ncipollo/[email protected] | ||
with: | ||
tag: desktop-${{ steps.commit.outputs.short }} | ||
name: robosats-desktop-${{ steps.commit.outputs.short }} | ||
prerelease: true | ||
|
||
- name: Upload macOS Build Artifact | ||
id: upload-release-mac-zip-asset | ||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release) | ||
uses: actions/upload-release-asset@v1 | ||
uses: actions/upload-artifact@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: /desktopApp-mac.zip | ||
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-mac.zip | ||
asset_content_type: application/zip | ||
path: desktopApp/release-builds/Robosats-darwin-x64 | ||
name: robosats-desktop-${{ steps.commit.outputs.short }}-mac-darwin-x64.zip | ||
|
||
- name: Upload Windows Build Artifact | ||
id: upload-release-win-zip-asset | ||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release) | ||
uses: actions/upload-release-asset@v1 | ||
uses: actions/upload-artifact@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: /desktopApp-win.zip | ||
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-win.zip | ||
asset_content_type: application/zip | ||
path: desktopApp/release-builds/Robosats-win32-ia32 | ||
name: robosats-desktop-${{ steps.commit.outputs.short }}-win32-ia32.zip | ||
|
||
- name: Upload Linux Build Artifact | ||
id: upload-release-linux-zip-asset | ||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release) | ||
uses: actions/upload-release-asset@v1 | ||
uses: actions/upload-artifact@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: /desktopApp-linux.zip | ||
asset_name: robosats-desktop-${{ steps.commit.outputs.short }}-linux.zip | ||
asset_content_type: application/zip | ||
path: desktopApp/release-builds/Robosats-linux-x64 | ||
name: robosats-desktop-${{ steps.commit.outputs.short }}-linux-x64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters