generated from JetBrains/compose-multiplatform-template
-
Notifications
You must be signed in to change notification settings - Fork 4
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
f8a6e1a
commit 8b34422
Showing
1 changed file
with
12 additions
and
12 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 |
---|---|---|
|
@@ -50,32 +50,32 @@ jobs: | |
if: ${{ github.event_name == 'release' }} | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
JS_ZIP="com.shreyashkore.wonderouscompose_$VERSION-JS.zip" | ||
WASM_ZIP="com.shreyashkore.wonderouscompose_$VERSION-WASM.zip" | ||
DEB_FILE=$(find ./composeApp/build/compose/binaries/main/deb/ -name "*.deb" | head -n 1) | ||
(cd ./composeApp/build/dist && zip -r $JS_ZIP js) | ||
(cd ./composeApp/build/dist && zip -r $WASM_ZIP wasmJs) | ||
gh release upload $VERSION ./composeApp/build/dist/$JS_ZIP | ||
gh release upload $VERSION ./composeApp/build/dist/$WASM_ZIP | ||
gh release upload $VERSION ./composeApp/build/outputs/apk/release/composeApp-release.apk | ||
gh release upload "$VERSION" "$DEB_FILE" | ||
gh release upload "$VERSION" "./composeApp/build/dist/$JS_ZIP" --clobber | ||
gh release upload "$VERSION" "./composeApp/build/dist/$WASM_ZIP" --clobber | ||
gh release upload "$VERSION" "./composeApp/build/outputs/apk/release/composeApp-release.apk" --clobber | ||
gh release upload "$VERSION" "$DEB_FILE" --clobber | ||
- name: Deploy Wasm | ||
if: ${{ github.event_name == 'release' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
token: ${{ secrets.TOKEN }} | ||
branch: main | ||
folder: composeApp/build/dist/wasmJs/productionExecutable | ||
repository-name: ShreyashKore/wonderous-compose-wasm | ||
- name: Deploy JS | ||
if: ${{ github.event_name == 'release' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
token: ${{ secrets.TOKEN }} | ||
branch: main | ||
folder: composeApp/build/dist/js/productionExecutable | ||
repository-name: ShreyashKore/wonderous-compose-js | ||
|
||
|
@@ -105,10 +105,10 @@ jobs: | |
if: ${{ github.event_name == 'release' }} | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
MSI_FILE=$(find ./composeApp/build/compose/binaries/main/msi/ -name "*.msi" | head -n 1) | ||
gh release upload "$VERSION" "$MSI_FILE" | ||
$MSI_FILE = (Get-ChildItem -Path .\composeApp\build\compose\binaries\main\msi\ -Filter *.msi | Select-Object -First 1).FullName | ||
gh release upload "$VERSION" "$MSI_FILE" --clobber | ||
# build_ios: | ||
# runs-on: macos-latest | ||
|