Skip to content

Commit

Permalink
fix github upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyashKore committed Sep 5, 2024
1 parent e05a27b commit 566af33
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
run: |
JS_ZIP="com.shreyashkore.wonderouscompose_$VERSION-JS.zip"
WASM_ZIP="com.shreyashkore.wonderouscompose_$VERSION-WASM.zip"
(cd ./composeApp/build/dist && zip -r JS_ZIP js)
(cd ./composeApp/build/dist && zip -r WASM_ZIP wasmJs)
gh release upload $GITHUB_REF_NAME ./composeApp/build/dist/JS_ZIP
gh release upload $GITHUB_REF_NAME ./composeApp/build/dist/WASM_ZIP
(cd ./composeApp/build/dist && zip -r $JS_ZIP js)
(cd ./composeApp/build/dist && zip -r $WASM_ZIP wasmJs)
gh release upload $GITHUB_REF_NAME ./composeApp/build/dist/$JS_ZIP
gh release upload $GITHUB_REF_NAME ./composeApp/build/dist/$WASM_ZIP
gh release upload $GITHUB_REF_NAME ./composeApp/build/outputs/apk/release/composeApp-release.apk
gh release upload $GITHUB_REF_NAME ./composeApp/build/compose/binaries/main/deb/com.shreyashkore.wonderouscompose_$VERSION-1_amd64.deb
Expand All @@ -84,6 +84,14 @@ jobs:
runs-on: windows-latest

steps:
- name: print variables
env:
VERSION: github.ref_name
run: |
echo "VERRR $VERSION $GITHUB_REF_NAME"
echo "ref=${{ github.ref }}"
echo "value=${{ github.event.inputs.release_ref }}"
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -101,12 +109,13 @@ jobs:
run: |
./gradlew composeApp:packageMsi
- name: Upload Release Asset
env:
VERSION: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'release' }}
env:
VERSION: ${{github.event.release.tag_name}}
GITHUB_TOKEN:
${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload $GITHUB_REF_NAME ./composeApp/build/compose/binaries/main/msi/com.shreyashkore.wonderouscompose-$VERSION.msi
gh release upload $VERSION ./composeApp/build/compose/binaries/main/msi/com.shreyashkore.wonderouscompose-$VERSION.msi
# build_ios:
# runs-on: macos-latest
Expand Down

0 comments on commit 566af33

Please sign in to comment.