Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Move file to correct location #3

Move file to correct location

Move file to correct location #3

Workflow file for this run

name: Azure Login with OIDC
on:
push:
branches:
- Assignment1
workflow_dispatch:
permissions:
id-token: write
contents: read
env:
AZURE_WEBAPP_NAME: jc-oidc-app # set this to your application's name
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '6.0.9' # set this to the dot net version to use
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
# Checkout the repo
- uses: actions/checkout@main
- uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_CREATED_SP }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# Run dotnet build and publish
- name: 'Show Connection Success'
run: |
az account show
# Deploy to Azure Web app
- name: logout
run: |
az logout