Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Mar 7, 2024
1 parent 49cb00d commit 47f6736
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 47f6736

Please sign in to comment.