Skip to content

Commit

Permalink
Fix website publish authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Battocchi <[email protected]>
  • Loading branch information
kbattocchi committed Jun 28, 2023
1 parent 8d58f37 commit 8823999
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ jobs:
popd
name: Zip docs for publishing
if : ${{ inputs.publish }}
- uses: azure/login@v1
name: Login to Azure
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
if : ${{ inputs.publish }}
- uses: azure/webapps-deploy@v2
name: Deploy documentation to Azure web app
with:
app-name: ${{ inputs.environment == 'prod' && 'econml' || 'econml-dev' }}
package: build/sphinx/html/docs.zip
publish-profile: ${{ inputs.environment == 'prod' && secrets.PROD_WEBAPP_PUBLISH_PROFILE || secrets.STAGING_WEBAPP_PUBLISH_PROFILE }}
if: ${{ inputs.publish }}

0 comments on commit 8823999

Please sign in to comment.