Skip to content

Commit

Permalink
Try dynamically retrieving the API token
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh committed Apr 23, 2024
1 parent d07a7db commit 34ebd19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/DeployEverything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
env:
ARM_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
build_api_server:
runs-on: ubuntu-latest
name: Build API Server
Expand Down Expand Up @@ -97,11 +96,16 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- run: |
apiToken=$(az staticwebapp secrets list --name pocketddd-${{ inputs.env }}-blazorclient --query "properties.apiKey" -o tsv)
echo "{WEB_APP_API_TOKEN}={$apiToken}" >> "$GITHUB_ENV"
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
# azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
azure_static_web_apps_api_token: ${{ env.WEB_APP_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
Expand Down

0 comments on commit 34ebd19

Please sign in to comment.