Skip to content

Commit bb09325

Browse files
Update azure-test.yml
1 parent 9a3907e commit bb09325

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/azure-test.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,29 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v2
1616

17-
- name: Set up Azure CLI
18-
uses: azure/setup-azurecli@v1
19-
with:
20-
azure-cliversion: latest
17+
# - name: Set up Azure CLI
18+
# uses: azure/setup-azurecli@v1
19+
# with:
20+
# azure-cliversion: latest
2121

22-
- name: Authenticate with Azure
23-
run: |
24-
echo "${{ secrets.AZURE_CREDENTIALS }}" > azure_credentials.json
25-
az login --service-principal -u $(jq -r .clientId azure_credentials.json) -p $(jq -r .clientSecret azure_credentials.json) --tenant $(jq -r .tenantId azure_credentials.json)
22+
# - name: Authenticate with Azure
23+
# run: |
24+
# echo "${{ secrets.AZURE_CREDENTIALS }}" > azure_credentials.json
25+
# az login --service-principal -u $(jq -r .clientId azure_credentials.json) -p $(jq -r .clientSecret azure_credentials.json) --tenant $(jq -r .tenantId azure_credentials.json)
2626

2727
- name: Install Miniconda
2828
run: |
29+
mkdir "$HOME/azure_upload"
30+
cd "$HOME/azure_upload"
2931
curl --ipv4 -L "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh" -o miniforge.sh
3032
31-
- name: Upload file to Azure Storage
32-
run: |
33-
az storage blob upload --account-name addaxaifilestorage --container-name github-zips --file miniforge.sh --name miniforge.sh --auth-mode key
33+
- uses: LanceMcCarthy/Action-AzureBlobUpload@v2
34+
name: Uploading to Azure storage...
35+
with:
36+
connection_string: ${{ secrets.AZURE_CONNECTION_STRING }}
37+
container_name: github-zips
38+
source_folder: $HOME/azure_upload
39+
40+
# - name: Upload file to Azure Storage
41+
# run: |
42+
# az storage blob upload --account-name addaxaifilestorage --container-name github-zips --file miniforge.sh --name miniforge.sh --auth-mode key

0 commit comments

Comments
 (0)