From 8a5ae012c0115cde1e4b6dba29cbb7d79c62ba2e Mon Sep 17 00:00:00 2001 From: Shahzad Afridi Date: Fri, 30 Aug 2024 12:23:26 +0500 Subject: [PATCH] Deployed web app on github packages --- .github/workflows/main.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc5d262..713b6af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -184,6 +184,12 @@ jobs: - name: Build Web run: ./gradlew wasmJsBrowserDistribution + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GH_TOKEN }} + publish_dir: composeApp/build/dist/wasmJs/productionExecutable + - name: Archive Web App run: | # Create a zip file of the productionExecutable directory @@ -196,21 +202,6 @@ jobs: name: web-app path: artifacts/web-app.zip - deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Build - run: | - ./gradlew wasmJsBrowserDistribution - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GH_TOKEN }} - publish_dir: composeApp/build/dist/wasmJs/productionExecutable # Workflow block for generating artifact links generate-artifact-links: