Skip to content

Commit c13774a

Browse files
committed
last one, move az login
1 parent cb6d160 commit c13774a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/upload-release-assets.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ jobs:
5757
with:
5858
ref: ${{ inputs.releaseBranch }}
5959

60-
- name: Azure Login
61-
if: ${{ inputs.uploadAzure == true }}
62-
uses: azure/login@8c334a195cbb38e46038007b304988d888bf676a # v2.0.0
63-
with:
64-
creds: ${{ secrets.AZURE_CREDENTIALS }}
65-
6660
- name: Download Packages
6761
run:
6862
|
@@ -81,6 +75,12 @@ jobs:
8175
gh release upload --clobber v${{ inputs.pkgVersion }} \
8276
$(find ${{inputs.pkgRepo}}/nginx-agent | grep -e "nginx-agent[_-]${{inputs.pkgVersion}}")
8377
78+
- name: Azure Login
79+
if: ${{ inputs.uploadAzure == true }}
80+
uses: azure/login@8c334a195cbb38e46038007b304988d888bf676a # v2.0.0
81+
with:
82+
creds: ${{ secrets.AZURE_CREDENTIALS }}
83+
8484
- name: Azure Upload
8585
if: ${{ inputs.uploadAzure == true }}
8686
uses: azure/CLI@965c8d7571d2231a54e321ddd07f7b10317f34d9 # v2.0.0
@@ -99,6 +99,6 @@ jobs:
9999
done
100100
101101
- name: Azure Logout
102+
if: ${{ inputs.uploadAzure == true }}
102103
run: |
103104
az logout || exit 0
104-
if: always()

0 commit comments

Comments
 (0)