MkDocs - Azure Static WebApp Configuration #3104
Unanswered
danorama-dh
asked this question in
Q&A
Replies: 1 comment
-
I'm using it in Azure DevOps like the following: - task: AzurePowerShell@5
displayName: "Retrieve deployment token"
inputs:
azureSubscription: ${{ parameters.serviceConnection }}
ScriptType: "InlineScript"
azurePowerShellVersion: LatestVersion
Inline: |
$AppSecret = Get-AzStaticWebAppSecret -ResourceGroupName '${{ parameters.resourceGroupName }}' -Name '${{ parameters.siteName }}'
$deploymentToken = ($AppSecret.property | ConvertFrom-Json).apiKey
Write-Host "##vso[task.setvariable variable=swaToken;issecret=true]$deploymentToken"
- task: AzureStaticWebApp@0
displayName: "Deploy SWA"
inputs:
app_location: "/site/"
api_location: ""
output_location: "./"
azure_static_web_apps_api_token: "$(swaToken)"
workingDirectory: $(Pipeline.Workspace) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to host my MkDocs repo on GitHub on Azure as a Static Web App. However, I am failing with the configuration. Can anyone help me with the GitHub WorkFlow or configuration?
My ./github/workflows/azure-static-[...].yml
Especially with this part:
I get the following error:
THANK YOU!!!
Beta Was this translation helpful? Give feedback.
All reactions