Skip to content

Commit

Permalink
fix: workflows (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
skanin committed Aug 22, 2023
1 parent 3273b6a commit cd55a89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy-webapp-restaurant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
push:
branches: [main]
paths:
- 'project/web/**'
- 'restaurant/web/**'

env:
WEB_APP_LOCATION: project/web
WEB_APP_LOCATION: restaurant/web
WEB_APP_ARTIFACT_LOCATION: dist # relative to WEB_APP_LOCATION

jobs:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL_RESTAURANT }}
VITE_API_SCOPE: ${{ vars.VITE_API_SCOPE_RESTAURANT }}
with:
azure_static_web_apps_api_token: ${{ secrets.WEBAPP_DEPLOYMENT_TOKEN }}
azure_static_web_apps_api_token: ${{ secrets.WEBAPP_DEPLOYMENT_TOKEN_RESTAURANT }}
repo_token: ${{ secrets.github_token }}
action: "upload"
app_location: ${{ env.WEB_APP_LOCATION }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy-webapp-spa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
push:
branches: [main]
paths:
- 'restaurant/web/**'
- 'spa/web/**'

env:
WEB_APP_LOCATION: restaurant/web
WEB_APP_LOCATION: spa/web
WEB_APP_ARTIFACT_LOCATION: dist # relative to WEB_APP_LOCATION

jobs:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL_SPA }}
VITE_API_SCOPE: ${{ vars.VITE_API_SCOPE_SPA }}
with:
azure_static_web_apps_api_token: ${{ secrets.WEBAPP_DEPLOYMENT_TOKEN_RESTAURANT }}
azure_static_web_apps_api_token: ${{ secrets.WEBAPP_DEPLOYMENT_TOKEN_SPA }}
repo_token: ${{ secrets.github_token }}
action: "upload"
app_location: ${{ env.WEB_APP_LOCATION }}
Expand Down

0 comments on commit cd55a89

Please sign in to comment.