diff --git a/.github/workflows/publish-studio-linux.yaml b/.github/workflows/publish-studio-linux.yaml index 24b2afba..08eb7aff 100644 --- a/.github/workflows/publish-studio-linux.yaml +++ b/.github/workflows/publish-studio-linux.yaml @@ -80,18 +80,42 @@ jobs: omitNameDuringUpdate: True omitPrereleaseDuringUpdate: True omitDraftDuringUpdate: True - - name: Upload to CDN using lftp - uses: pontago/lftp-deploy-action@master - with: - protocol: sftp - host: 5017617850.ssh.w2.strato.hosting - username: ${{ secrets.ONEWARE_SFTP_USER }} - password: ${{ secrets.ONEWARE_SFTP_PW }} - script: | - set cmd:fail-exit false - put OneWareStudio-${{ needs.build.outputs.version }}-linux-arm64.tgz -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-linux-arm64.tgz - put linux-arm64.txt -o ./cdn.one-ware.com/onewarestudio/linux-arm64.txt - mkdir ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }} - set cmd:fail-exit true - put OneWareStudio-${{ needs.build.outputs.version }}-linux-x64.tgz -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-linux-x64.tgz - put linux-x64.txt -o ./cdn.one-ware.com/onewarestudio/linux-x64.txt + - name: Upload to Azure Blob Storage + env: + AZURE_STORAGE_ACCOUNT: onewarecdn + AZURE_STORAGE_KEY: ${{ secrets.ONEWARE_STORAGE_KEY }} + STORAGE_CONTAINER: onewarestudio + VERSION: ${{ needs.build.outputs.version }} + run: | + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-linux-arm64.tgz" \ + --file "OneWareStudio-${VERSION}-linux-arm64.tgz" \ + --content-type "application/gzip" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "linux-arm64.txt" \ + --file "linux-arm64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-linux-x64.tgz" \ + --file "OneWareStudio-${VERSION}-linux-x64.tgz" \ + --content-type "application/gzip" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "linux-x64.txt" \ + --file "linux-x64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite diff --git a/.github/workflows/publish-studio-macos.yml b/.github/workflows/publish-studio-macos.yml index 83bc28aa..aea8163f 100644 --- a/.github/workflows/publish-studio-macos.yml +++ b/.github/workflows/publish-studio-macos.yml @@ -119,20 +119,58 @@ jobs: omitNameDuringUpdate: True omitPrereleaseDuringUpdate: True omitDraftDuringUpdate: True - - name: Upload to CDN - uses: pontago/lftp-deploy-action@master - with: - protocol: sftp - host: 5017617850.ssh.w2.strato.hosting - username: ${{ secrets.ONEWARE_SFTP_USER }} - password: ${{ secrets.ONEWARE_SFTP_PW }} - script: | - set cmd:fail-exit false - mkdir ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }} - set cmd:fail-exit true - put OneWareStudio-${{ needs.build.outputs.version }}-osx-x64.dmg -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-osx-x64.dmg - put OneWareStudio-${{ needs.build.outputs.version }}-osx-arm64.dmg -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-osx-arm64.dmg - put MacOSDownload-x64.htm -o ./cdn.one-ware.com/onewarestudio/MacOSDownload-x64.htm - put MacOSDownload-arm64.htm -o ./cdn.one-ware.com/onewarestudio/MacOSDownload-arm64.htm - put osx-x64.txt -o ./cdn.one-ware.com/onewarestudio/osx-x64.txt - put osx-arm64.txt -o ./cdn.one-ware.com/onewarestudio/osx-arm64.txt + - name: Upload to Azure Blob Storage + env: + AZURE_STORAGE_ACCOUNT: onewarecdn + AZURE_STORAGE_KEY: ${{ secrets.ONEWARE_STORAGE_KEY }} + STORAGE_CONTAINER: onewarestudio + VERSION: ${{ needs.build.outputs.version }} + run: | + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-osx-x64.dmg" \ + --file "OneWareStudio-${VERSION}-osx-x64.dmg" \ + --content-type "application/octet-stream" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-osx-arm64.dmg" \ + --file "OneWareStudio-${VERSION}-osx-arm64.dmg" \ + --content-type "application/octet-stream" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "MacOSDownload-x64.htm" \ + --file "MacOSDownload-x64.htm" \ + --content-type "text/html; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "MacOSDownload-arm64.htm" \ + --file "MacOSDownload-arm64.htm" \ + --content-type "text/html; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "osx-x64.txt" \ + --file "osx-x64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "osx-arm64.txt" \ + --file "osx-arm64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite diff --git a/.github/workflows/publish-studio-windows.yml b/.github/workflows/publish-studio-windows.yml index d0fed85d..3661d91c 100644 --- a/.github/workflows/publish-studio-windows.yml +++ b/.github/workflows/publish-studio-windows.yml @@ -87,20 +87,58 @@ jobs: omitNameDuringUpdate: True omitPrereleaseDuringUpdate: True omitDraftDuringUpdate: True - - name: Upload to CDN - uses: pontago/lftp-deploy-action@master - with: - protocol: sftp - host: 5017617850.ssh.w2.strato.hosting - username: ${{ secrets.ONEWARE_SFTP_USER }} - password: ${{ secrets.ONEWARE_SFTP_PW }} - script: | - set cmd:fail-exit false - mkdir ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }} - set cmd:fail-exit true - put OneWareStudio-${{ needs.build.outputs.version }}-win-x64.msi -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-win-x64.msi - put OneWareStudio-${{ needs.build.outputs.version }}-win-arm64.msi -o ./cdn.one-ware.com/onewarestudio/${{ needs.build.outputs.version }}/OneWareStudio-${{ needs.build.outputs.version }}-win-arm64.msi - put WinDownload-arm64.htm -o ./cdn.one-ware.com/onewarestudio/WinDownload-arm64.htm - put WinDownload-x64.htm -o ./cdn.one-ware.com/onewarestudio/WinDownload-x64.htm - put win-x64.txt -o ./cdn.one-ware.com/onewarestudio/win-x64.txt - put win-arm64.txt -o ./cdn.one-ware.com/onewarestudio/win-arm64.txt + - name: Upload to Azure Blob Storage + env: + AZURE_STORAGE_ACCOUNT: onewarecdn + AZURE_STORAGE_KEY: ${{ secrets.ONEWARE_STORAGE_KEY }} + STORAGE_CONTAINER: onewarestudio + VERSION: ${{ needs.build.outputs.version }} + run: | + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-win-x64.msi" \ + --file "OneWareStudio-${VERSION}-win-x64.msi" \ + --content-type "application/octet-stream" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "${VERSION}/OneWareStudio-${VERSION}-win-arm64.msi" \ + --file "OneWareStudio-${VERSION}-win-arm64.msi" \ + --content-type "application/octet-stream" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "WinDownload-arm64.htm" \ + --file "WinDownload-arm64.htm" \ + --content-type "text/html; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "WinDownload-x64.htm" \ + --file "WinDownload-x64.htm" \ + --content-type "text/html; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "win-x64.txt" \ + --file "win-x64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite + az storage blob upload \ + --account-name "$AZURE_STORAGE_ACCOUNT" \ + --account-key "$AZURE_STORAGE_KEY" \ + --container-name "$STORAGE_CONTAINER" \ + --name "win-arm64.txt" \ + --file "win-arm64.txt" \ + --content-type "text/plain; charset=utf-8" \ + --overwrite