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

Web deployment #63

Merged
merged 3 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions .github/web_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: WebDeployment

on:
push:
branches:
- main

env:
CI: true

jobs:
WebDeployment:
name: WebDeployment
runs-on: macos-13
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
run: ./gradlew :webApp:jsBrowserProductionWebpack

- name: Move Output to Directory
run: |
mkdir distribution
mv webApp/build/dist/js/productionExecutable/* distribution/

# Commit and push the directory to a specified branch (e.g., "output-branch")
- name: Commit and Push to Branch
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add distribution/
git commit -m "Add output from build"
git push -f origin HEAD:deploy-branch
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class LinesOfMessagesVisualisation(
val mappedHalfEntryHeight =
effectiveEntrySize.height / (transitionBounds.heightDp - effectiveEntrySize.height)
val horizontalBias = mapValueRange(
value = transitionBounds.widthDp.value / 2f - halfEffectiveEntrySize.width.value * ((elements.size / 2f).nextUp()
value = transitionBounds.widthDp.value / 2f - halfEffectiveEntrySize.width.value * ((elements.size / 2.0).nextUp()
.roundToInt()) + index * halfEffectiveEntrySize.width.value,
fromRangeMin = 0f,
fromRangeMax = transitionBounds.widthDp.value - effectiveEntrySize.width.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale

private const val EMBED_URL = "appyx/where/hosted/sample"
private const val EMBED_URL = "https://github.com/bumble-tech/live-mosaic/blob/deploy-branch/distribution/"

@Composable
actual fun EmbeddableResourceImage(
Expand Down