Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ugurkocde committed Jan 18, 2025
1 parent deebc3d commit 92a2df7
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build-github-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,10 @@ jobs:
pkgbuild --install-location /Applications --component ~/Desktop/${{ env.FILENAME }}.app ~/Desktop/${{ env.FILENAME }}.pkg
echo "PKG build completed successfully"
- name: Upload to Azure Storage
uses: azure/cli@v1
with:
inlineScript: |
echo "Uploading PKG to Azure Storage..."
az storage blob upload \
--account-name ${{ secrets.AZURE_STORAGE_ACCOUNT }} \
--container-name ${{ secrets.AZURE_CONTAINER_NAME }} \
--name "${{ env.FILENAME }}.pkg" \
--file ~/Desktop/${{ env.FILENAME }}.pkg \
--auth-mode key \
--account-key ${{ secrets.AZURE_STORAGE_KEY }}
echo "Upload to Azure Storage completed successfully"
- name: Upload to Azure Blob Storage with SAS
run: |
echo "Uploading PKG to Azure Blob Storage..."
curl -X PUT -H "x-ms-blob-type: BlockBlob" \
-T ~/Desktop/${{ env.FILENAME }}.pkg \
"${{ secrets.BLOB_SAS_URL }}/${{ env.FILENAME }}.pkg${{ secrets.BLOB_SAS_TOKEN }}"
echo "Upload to Azure Blob Storage completed successfully"

0 comments on commit 92a2df7

Please sign in to comment.