From 1687a73aa2ae7a8e5bed9c4f0ebd381e09ca7f1b Mon Sep 17 00:00:00 2001 From: Uwe Date: Tue, 9 Apr 2024 14:23:22 +1200 Subject: [PATCH] trying to adjust build --- ...e-static-web-apps-ashy-cliff-063467010.yml | 11 +++++ ...e-static-web-apps-salmon-sky-0497dc410.yml | 46 ------------------- ...tic-web-apps-victorious-moss-0c2ac0910.yml | 46 ------------------- 3 files changed, 11 insertions(+), 92 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-salmon-sky-0497dc410.yml delete mode 100644 .github/workflows/azure-static-web-apps-victorious-moss-0c2ac0910.yml diff --git a/.github/workflows/azure-static-web-apps-ashy-cliff-063467010.yml b/.github/workflows/azure-static-web-apps-ashy-cliff-063467010.yml index 0120dd0..383564e 100644 --- a/.github/workflows/azure-static-web-apps-ashy-cliff-063467010.yml +++ b/.github/workflows/azure-static-web-apps-ashy-cliff-063467010.yml @@ -19,6 +19,17 @@ jobs: with: submodules: true lfs: false + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '^20.x' + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build + - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 diff --git a/.github/workflows/azure-static-web-apps-salmon-sky-0497dc410.yml b/.github/workflows/azure-static-web-apps-salmon-sky-0497dc410.yml deleted file mode 100644 index ff8b4ae..0000000 --- a/.github/workflows/azure-static-web-apps-salmon-sky-0497dc410.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_SKY_0497DC410 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_SALMON_SKY_0497DC410 }} - action: "close" diff --git a/.github/workflows/azure-static-web-apps-victorious-moss-0c2ac0910.yml b/.github/workflows/azure-static-web-apps-victorious-moss-0c2ac0910.yml deleted file mode 100644 index 711a067..0000000 --- a/.github/workflows/azure-static-web-apps-victorious-moss-0c2ac0910.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_MOSS_0C2AC0910 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_VICTORIOUS_MOSS_0C2AC0910 }} - action: "close"