Skip to content

Commit

Permalink
Merge pull request #63 from mike-n-jordan/web-deployment
Browse files Browse the repository at this point in the history
Web deployment
  • Loading branch information
mike-n-jordan authored Oct 26, 2023
2 parents 61ff940 + 4773c24 commit 45cae43
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
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

0 comments on commit 45cae43

Please sign in to comment.