diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 1dcd63e..61708b4 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -21,6 +21,10 @@ concurrency: group: "pages" cancel-in-progress: false + +env: + MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/appyx' }} + jobs: # Single deploy job since we're just deploying deploy: @@ -31,6 +35,19 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '17' + - uses: gradle/wrapper-validation-action@v1 + - uses: gradle/gradle-build-action@v2 + with: + cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} + - name: Build + run: > + ./gradlew + webApp:jsBrowserDistribution + --continue - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact