Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
babakamyljanovssw authored Sep 11, 2024
1 parent 5663b31 commit 75f9a69
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

Expand Down Expand Up @@ -42,9 +42,9 @@ jobs:
environment: production

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

Expand All @@ -60,20 +60,20 @@ jobs:
CMS_OAUTH_CLIENT_SECRET: ${{ secrets.CMS_OAUTH_CLIENT_SECRET }}

- name: Login with Azure CLI
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Run ARM deploy
uses: azure/arm-deploy@v1
uses: azure/arm-deploy@v2
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: Azure/arm-template.json
deploymentMode: Validate

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.1
uses: actions/upload-artifact@v4
with:
name: arm-template
path: Azure/arm-template.json
Expand All @@ -89,28 +89,28 @@ jobs:
name: arm-template

- name: Login with Azure CLI
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Run ARM deploy
uses: azure/arm-deploy@v1
uses: azure/arm-deploy@v2
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: arm-template.json

- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Login with Azure CLI
uses: azure/login@v1
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: functionsapp
path: deploy
Expand Down

0 comments on commit 75f9a69

Please sign in to comment.