-
Notifications
You must be signed in to change notification settings - Fork 3
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
316ba98
commit f949279
Showing
1 changed file
with
12 additions
and
44 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 |
---|---|---|
|
@@ -10,7 +10,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
with: | ||
submodules: true | ||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -28,50 +29,17 @@ jobs: | |
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
|
||
- name: Rename stm-macos | ||
run: mv release/stm-macos stm | ||
|
||
- name: Bundle stm-macos | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r release/stm-macos-v${{ steps.package-version.outputs.current-version}}.zip stm | ||
|
||
- name: Remove stm (of macos) | ||
run: rm stm | ||
|
||
- name: Rename stm-linux | ||
run: mv release/stm-linux stm | ||
|
||
- name: Bundle stm-linux | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r release/stm-linux-v${{ steps.package-version.outputs.current-version}}.zip stm | ||
|
||
- name: Remove stm (of linux) | ||
run: rm stm | ||
|
||
- name: Rename stm-alpine | ||
run: mv release/stm-alpine stm | ||
|
||
- name: Bundle stm-alpine | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r release/stm-alpine-v${{ steps.package-version.outputs.current-version}}.zip stm | ||
|
||
- name: Remove stm (of alpine) | ||
run: rm stm | ||
|
||
- name: Rename stm-win | ||
run: mv release/stm-win.exe stm.exe | ||
|
||
- name: Bundle stm-win | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq -r release/stm-win-v${{ steps.package-version.outputs.current-version}}.zip stm.exe | ||
|
||
- name: Remove stm (of win) | ||
run: rm stm.exe | ||
- name: Install zip command line tool | ||
run: sudo apt-get install zip | ||
|
||
- name: Prepare stm archives for different targets | ||
run: | | ||
zip -qq -r release/stm-macos-v${{ steps.package-version.outputs.current-version}}.zip stm-macos | ||
zip -qq -r release/stm-linux-v${{ steps.package-version.outputs.current-version}}.zip stm-linux | ||
zip -qq -r release/stm-alpine-v${{ steps.package-version.outputs.current-version}}.zip stm-alpine | ||
zip -qq -r release/stm-win-v${{ steps.package-version.outputs.current-version}}.zip stm.exe | ||
rm releases/stm-macos releases/stm-linux releases/stm-alpine releases/stm.exe | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
|