Skip to content

Commit

Permalink
ci: upload installer to Azure storage blob
Browse files Browse the repository at this point in the history
  • Loading branch information
joshooaj committed Aug 4, 2024
1 parent 08cf006 commit ff4cdaf
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,23 @@ jobs:
"OUTPUTDIRECTORY=.\output\Setup\en-US\" | Add-Content $env:GITHUB_OUTPUT
# - name: Azure login
# if: github.ref == 'refs/heads/main'
# uses: Azure/login@v2
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# enable-AzPSSession: true
- name: Azure login
if: github.ref == 'refs/heads/main'
uses: Azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true

- name: Upload to Azure
env:
AZURE_STORAGE_NAME: ${{ secrets.AZURE_STORAGE_NAME }}
AZURE_BLOB_NAME: ${{ secrets.AZURE_BLOB_NAME }}
shell: powershell
run: |
$installer = Get-ChildItem -Path .\output\Setup\en-US\*.msi
az storage blob upload -f $installer.FullName -c $env:AZURE_STORAGE_NAME -n $env:AZURE_BLOB_NAME
# - name: Sign module
# if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit ff4cdaf

Please sign in to comment.