Skip to content

Commit

Permalink
Update packages 2 (#62)
Browse files Browse the repository at this point in the history
* Update build.yml

* Update release.yml
  • Loading branch information
babakamyljanovssw authored Sep 11, 2024
1 parent e788e91 commit 2614c37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,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 All @@ -33,7 +33,7 @@ jobs:
--output ../deploy
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.1
uses: actions/upload-artifact@v4
with:
name: functionsapp
path: deploy
Expand All @@ -43,9 +43,9 @@ jobs:
environment: staging

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 @@ -61,12 +61,12 @@ jobs:
CMS_OAUTH_CLIENT_SECRET: ${{ secrets.STAGING_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 }}
Expand All @@ -86,28 +86,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
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

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: functionsapp
path: deploy
Expand Down
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 2614c37

Please sign in to comment.