chore(CDN): upload all release assets

This commit is contained in:
Jan De Dobbeleer 2024-11-30 17:51:35 +01:00 committed by Jan De Dobbeleer
parent e79a5bfce5
commit 71fc5644df

View file

@ -106,39 +106,23 @@ jobs:
path: | path: |
packages/msi/out/install-${{ matrix.arch }}.msi packages/msi/out/install-${{ matrix.arch }}.msi
packages/msi/out/install-${{ matrix.arch }}.msi.sha256 packages/msi/out/install-${{ matrix.arch }}.msi.sha256
cdn:
runs-on: ubuntu-latest
needs:
- changelog
- msi
strategy:
matrix:
arch: [x64, arm64, x86]
steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: msi-artifact-${{ matrix.arch }}
- name: Upload MSI to CDN
env:
CDN_CONNECTIONSTRING: ${{ secrets.CDN_CONNECTIONSTRING }}
run: |
az storage blob upload --container-name v${{ needs.changelog.outputs.version }} --file install-${{ matrix.arch }}.msi --connection-string $CDN_CONNECTIONSTRING
az storage blob upload --container-name latest --file install-${{ matrix.arch }}.msi --overwrite true --connection-string $CDN_CONNECTIONSTRING
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- changelog - changelog
- cdn - artifacts
- msi
steps: steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with: with:
merge-multiple: true merge-multiple: true
- name: Upload version file - name: Upload version file
env: env:
CDN_CONNECTIONSTRING: ${{ secrets.CDN_CONNECTIONSTRING }} AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.CDN_CONNECTIONSTRING }}
run: | run: |
echo v${{ needs.changelog.outputs.version }} > version.txt echo v${{ needs.changelog.outputs.version }} > version.txt
az storage blob upload --container-name latest --file version.txt --overwrite true --connection-string $CDN_CONNECTIONSTRING az storage blob upload-batch --destination v${{ needs.changelog.outputs.version }} --source .
az storage blob upload-batch --destination latest --overwrite true --source .
- name: Release 🎓 - name: Release 🎓
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974
with: with: