Skip to content

Commit d8a3819

Browse files
author
Sagar
committed
dc3
1 parent 7e47580 commit d8a3819

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/azure-static-web-apps-blue-cliff-0dfeb910f.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,22 @@ jobs:
1414
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
1515
runs-on: ubuntu-latest
1616
name: Build and Deploy Job
17-
permissions:
18-
id-token: write
19-
contents: read
2017
steps:
2118
- uses: actions/checkout@v3
2219
with:
2320
submodules: true
2421
lfs: false
25-
- name: Install OIDC Client from Core Package
26-
run: npm install @actions/core@1.6.0 @actions/http-client
27-
- name: Get Id Token
28-
uses: actions/github-script@v6
29-
id: idtoken
30-
with:
31-
script: |
32-
const coredemo = require('@actions/core')
33-
return await coredemo.getIDToken()
34-
result-encoding: string
22+
3523
- name: Build And Deploy
3624
id: builddeploy
3725
uses: Azure/static-web-apps-deploy@v1
3826
with:
3927
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_CLIFF_0DFEB910F }}
28+
repo_token: ${{ secrets.GITHUB_TOKEN }}
4029
action: "upload"
41-
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
42-
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
43-
app_location: "./frontend" # App source code path
44-
api_location: "" # Api source code path - optional
45-
output_location: "dist" # Built app content directory - optional
46-
github_id_token: ${{ steps.idtoken.outputs.result }}
47-
###### End of Repository/Build Configurations ######
30+
app_location: "./frontend"
31+
api_location: ""
32+
output_location: "dist"
4833
env:
4934
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
5035

@@ -57,4 +42,5 @@ jobs:
5742
id: closepullrequest
5843
uses: Azure/static-web-apps-deploy@v1
5944
with:
45+
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLUE_CLIFF_0DFEB910F }}
6046
action: "close"

0 commit comments

Comments
 (0)