feat: add auto-deploy workflow #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Azure Login with OpenID Connect and PowerShell | ||
on: workflow_dispatch: | ||
#[push] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
Windows-latest: | ||
runs-on: windows-latest | ||
steps: | ||
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true) | ||
uses: azure/login@v1 | ||
with: | ||
enable-AzPSSession: true # interestingly this gives subscriptionid error. maybe PSSession is not tested. | ||
auth-type: IDENTITY | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
- name: 'Get resource group with PowerShell action' | ||
uses: azure/powershell@v1 | ||
with: | ||
inlineScript: | | ||
Get-AzResourceGroup | ||
azPSVersion: "latest" |