-
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
f949279
commit 6d4c572
Showing
1 changed file
with
49 additions
and
10 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 |
---|---|---|
|
@@ -8,10 +8,11 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- name: Checkout with Submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -29,19 +30,57 @@ 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: Install zip command line tool | ||
run: sudo apt-get install zip | ||
- 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: 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: 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: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: release/* | ||
|
||
- name: Publish to NPM | ||
run: yarn run publish | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |