Skip to content

Commit

Permalink
update submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
TamimiGitHub committed Aug 13, 2024
1 parent 316ba98 commit f949279
Showing 1 changed file with 12 additions and 44 deletions.
56 changes: 12 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit f949279

Please sign in to comment.