Skip to content

Commit

Permalink
Deployed web app on github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadafridi committed Aug 30, 2024
1 parent 34a3653 commit 8a5ae01
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8a5ae01

Please sign in to comment.