From 095f3d0e3d61a60bc0c620a9628dfcd52bcd96c2 Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Tue, 21 May 2024 17:20:02 -0500 Subject: [PATCH] Updating github actions app and api build commands and locations --- .github/workflows/feature.yml | 9 +++++---- .github/workflows/pull_request.yml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/feature.yml b/.github/workflows/feature.yml index 30ba72a..5629c65 100644 --- a/.github/workflows/feature.yml +++ b/.github/workflows/feature.yml @@ -21,9 +21,10 @@ jobs: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }} action: "upload" - app_location: "/" - app_build_command: 'npm run build-storybook' - api_location: "" - output_location: "storybook-static" + app_build_command: ${{ vars.APP_BUILD_COMMAND }} + app_location: ${{ vars.APP_LOCATION }} + api_build_command: ${{ vars.API_BUILD_COMMAND }} + api_location: ${{ vars.API_LOCATION}} + output_location: ${{ vars.OUTPUT_LOCATION }} deployment_environment: "development" \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c6b765e..7940875 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -23,10 +23,11 @@ jobs: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }} action: 'upload' - app_location: '/' - app_build_command: 'npm run build-storybook' - api_location: '' - output_location: 'storybook-static' + app_build_command: ${{ vars.APP_BUILD_COMMAND }} + app_location: ${{ vars.APP_LOCATION }} + api_build_command: ${{ vars.API_BUILD_COMMAND }} + api_location: ${{ vars.API_LOCATION}} + output_location: ${{ vars.OUTPUT_LOCATION }} deployment_environment: 'staging' close_pull_request_job: