|
12 | 12 | TAG: ${{ github.head_ref || github.ref_name }}-${{ github.run_number }} |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - build-deploy-azure-static-site: |
16 | | - runs-on: ubuntu-latest |
17 | | - name: Build and deploy static site |
18 | | - steps: |
19 | | - - uses: actions/checkout@v3 |
20 | | - - uses: actions/setup-java@v4 |
21 | | - with: |
22 | | - distribution: temurin |
23 | | - java-version: 21 |
24 | | - - name: Setup Gradle |
25 | | - uses: gradle/actions/setup-gradle@v3 |
26 | | - - name: gradle jsBrowserProductionLibraryDistribution |
27 | | - working-directory: webtool/gradle/common |
28 | | - run: gradle jsBrowserProductionLibraryDistribution |
29 | | - - uses: actions/setup-node@v4 |
30 | | - with: |
31 | | - node-version: 22 |
32 | | - cache: npm |
33 | | - cache-dependency-path: ./webtool/frontend/package-lock.json |
34 | | - - run: npm install |
35 | | - working-directory: ./webtool/frontend |
36 | | - - run: npm run build |
37 | | - working-directory: ./webtool/frontend |
38 | | - env: |
39 | | - VITE_BACKEND_URL: https://local4local-backend.zenmo.com |
40 | | - VITE_ANYLOGIC_CALLBACK_URL: https://local4local-backend.zenmo.com |
41 | | - - name: Copy Azure settings |
42 | | - run: cp webtool/frontend/staticwebapp.config.json webtool/frontend/dist/. |
43 | | - - name: Build And Deploy |
44 | | - id: builddeploy |
45 | | - uses: Azure/static-web-apps-deploy@v1 |
46 | | - with: |
47 | | - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_DEPLOY_TOKEN }} |
48 | | - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) |
49 | | - action: "upload" |
50 | | - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### |
51 | | - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig |
52 | | - # We build in previous steps, because a build failure at this step doesn't block the deploy. |
53 | | - skip_app_build: true |
54 | | - app_location: "/webtool/frontend/dist" |
55 | | - api_location: "" # Api source code path - optional |
56 | | - ###### End of Repository/Build Configurations ###### |
57 | | - |
58 | 15 | build-backend-container: |
59 | 16 | runs-on: ubuntu-24.04 |
60 | 17 | steps: |
|
0 commit comments