From ce23add165ba52d86a9f963568204a90b2d9dd70 Mon Sep 17 00:00:00 2001 From: Benjamin Dupont Date: Sat, 31 Dec 2022 12:51:25 -0500 Subject: [PATCH] ci: upload to cloudflare in master and stable pipelines --- .github/workflows/master.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b495948338f..2e447ba35f9 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -89,6 +89,12 @@ jobs: run: | ./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./build-modules ./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./${{ env.BUILD_DIR_NAME }} + - name: Upload to CloudFlare CDN + env: + CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }} + CDN_BUCKET_DESTINATION: addons/a32nx/master + run: | + ./scripts/cf-cdn.sh $CDN_BUCKET_DESTINATION ./build-modules - name: Delete old GitHub Pre-Release assets uses: mknejp/delete-release-assets@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f7d92ef3e2..9d594385774 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,6 +66,12 @@ jobs: run: | ./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./build-modules ./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./${{ env.BUILD_DIR_NAME }} + - name: Upload to CloudFlare CDN + env: + CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }} + CDN_BUCKET_DESTINATION: addons/a32nx/stable + run: | + ./scripts/cf-cdn.sh $CDN_BUCKET_DESTINATION ./build-modules - name: Delete old GitHub Pre-Release assets uses: mknejp/delete-release-assets@v1 with: