Skip to content

Commit 04814d1

Browse files
committed
Updated workflow file
1 parent 2a00fd6 commit 04814d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/azure-static-web-apps-ashy-mushroom-050807710.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
types: [opened, synchronize, reopened, closed]
99
branches:
1010
- main
11+
workflow_dispatch: # Allows manual trigger of the workflow
1112

1213
jobs:
1314
build_and_deploy_job:
@@ -19,16 +20,16 @@ jobs:
1920
with:
2021
submodules: true
2122
- name: Add token for public pages
22-
run: sed -i 's/PUBLIC_PAT/${{ secrets.MITHRANDIR_PUBLIC_TOKEN }}/g' src/RobWill.Blog/wwwroot/appsettings.json
23+
run: |
24+
export PUBLIC_PAT=${{ secrets.MITHRANDIR_PUBLIC_TOKEN }}
25+
sed -i "s/PUBLIC_PAT/$PUBLIC_PAT/g" src/RobWill.Blog/wwwroot/appsettings.json
2326
- name: Build And Deploy
2427
id: builddeploy
2528
uses: Azure/static-web-apps-deploy@v1
2629
with:
2730
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_MUSHROOM_050807710 }}
2831
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
2932
action: "upload"
30-
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
31-
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
3233
app_location: "/src/RobWill.Blog" # App source code path
3334
api_location: "" # Api source code path - optional
3435
output_location: "wwwroot" # Built app content directory - optional

0 commit comments

Comments
 (0)