From b00c27a703ffb9819c5cf9c9a1f345514a0b912b Mon Sep 17 00:00:00 2001 From: Piotr Czarnas Date: Wed, 24 Jan 2024 12:44:08 +0100 Subject: [PATCH] Deploy v 1.0.0 without gzipping. --- .github/workflows/mvn-build-develop.yml | 91 +++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/.github/workflows/mvn-build-develop.yml b/.github/workflows/mvn-build-develop.yml index f05a29ef06..fa76f4723e 100644 --- a/.github/workflows/mvn-build-develop.yml +++ b/.github/workflows/mvn-build-develop.yml @@ -43,6 +43,97 @@ jobs: - name: Build with Maven run: mvn package -DskipTests -Pbuild-with-jdk-11 -Pdevelopment-build -Prun-npm + - uses: juliangruber/read-file-action@v1 + name: Read VERSION + id: read_version + with: + path: ./VERSION + + - uses: 'google-github-actions/auth@v2' + with: + credentials_json: ${{ secrets.RELEASES_SERVICE_ACCOUNT_JSON }} + + - id: 'upload-release-asia' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-asia/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-australia-southeast1' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-australia-southeast1/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-eu' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-eu/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-europe-central2' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-europe-central2/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-in' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-in/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-me-central1' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-me-central1/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-me-west1' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-me-west1/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-southamerica-east1' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-southamerica-east1/releases' + gzip: false + headers: |- + content-type: application/zip + + - id: 'upload-release-us' + uses: 'google-github-actions/upload-cloud-storage@v2' + with: + path: './distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip' + destination: '${{ secrets.DQOPS_COM_WWW_BUCKET_PREFIX }}-us/releases' + gzip: false + headers: |- + content-type: application/zip + - name: Save cached npm packages id: save-cached-npm-packages uses: actions/cache/save@v3