File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11name : Build & Deploy to Azure
22
3+ # Grant GitHub Actions the ability to mint an OIDC token
4+ permissions :
5+ contents : read # for checking out your code
6+ id-token : write # to obtain the AAD OIDC token
7+
38on :
49 push :
510 branches : [ main ]
914 runs-on : ubuntu-latest
1015
1116 steps :
12- # 1. Grab your code
17+ # 1️⃣ Checkout your code
1318 - uses : actions/checkout@v3
1419
15- # 2. Use Node 20
20+ # 2️⃣ Use Node 20
1621 - name : Setup Node.js
1722 uses : actions/setup-node@v3
1823 with :
1924 node-version : " 20"
2025
21- # 3. Install & build
26+ # 3️⃣ Install & build
2227 - name : Install dependencies
2328 run : npm ci
2429 - name : Build
2530 run : npm run build
2631
27- # 4. Login to Azure via OIDC (no secret)
32+ # 4️⃣ Login to Azure via OIDC (no client secret needed )
2833 - name : Azure Login
2934 uses : azure/login@v1
3035 with :
3136 client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_E5978DC6004B4BB995ACD60ADAF513EF }}
3237 tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_8824E98435E440FAA46E146AD7716A44 }}
3338 subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6A3ECC57385541ACB3AC40EA396FC5B5 }}
3439
35- # 5. Deploy to your Web App
40+ # 5️⃣ Deploy the artifiact to your Web App
3641 - name : Deploy to Azure Web App
3742 uses : azure/webapps-deploy@v2
3843 with :
You can’t perform that action at this time.
0 commit comments