Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/wasmjs GitHub pages #32

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy NoiseCapture as a static website
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,7 +23,7 @@ concurrency:


env:
MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/appyx' }}
MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' }}

jobs:
# Single deploy job since we're just deploying
Expand All @@ -48,20 +48,18 @@ jobs:
with:
key: noisecapturejs
path: |
webApp/build
shared/build
build/js
composeApp/build/dist/wasmJs
- name: Build
run: >
./gradlew
webApp:jsBrowserDistribution
--continue
./gradlew wasmJsBrowserDistribution
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload js dist
path: 'webApp/build/dist/js/productionExecutable'
path: 'composeApp/build/dist/wasmJs/productionExecutable'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Expand Down
Loading