diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index f192260b3..ff5a41526 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -12,6 +12,8 @@ jobs: A32NX_INSTRUMENTS_BUILD_WORKERS: 2 ZIP_NAME: headwindsim-aircraft-a330-300-dev.zip BUILD_DIR_NAME: development + CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} + CDN_BUCKET_DESTINATION: addons/a333x/development steps: - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main @@ -58,11 +60,18 @@ jobs: zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./headwindsim-aircraft-a330-300/ cd ../../ - name: Upload to CloudFlare CDN - env: - CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} - CDN_BUCKET_DESTINATION: addons/a333x/development run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a333x/out/build-modules + - name: Get short SHA + uses: benjlevesque/short-sha@v2.2 + id: short-sha + - name: Upload Release Config to CloudFlare CDN + run: | + mkdir -p ./build-a333x/out/config + echo "releases:" >> ./build-a333x/out/config/releases.yaml + echo " - name: $steps.short-sha.outputs.sha" >> ./build-a333x/out/config/releases.yaml + echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./build-a333x/out/config/releases.yaml + ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a333x/out/config build-a339x: runs-on: ubuntu-latest env: @@ -70,6 +79,8 @@ jobs: A32NX_INSTRUMENTS_BUILD_WORKERS: 2 ZIP_NAME: headwindsim-aircraft-a330-900-dev.zip BUILD_DIR_NAME: development + CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} + CDN_BUCKET_DESTINATION: addons/a339x/development steps: - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main @@ -116,11 +127,18 @@ jobs: zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./headwindsim-aircraft-a330-900/ cd ../../ - name: Upload to CloudFlare CDN - env: - CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} - CDN_BUCKET_DESTINATION: addons/a339x/development run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a339x/out/build-modules + - name: Get short SHA + uses: benjlevesque/short-sha@v2.2 + id: short-sha + - name: Upload Release Config to CloudFlare CDN + run: | + mkdir -p ./build-a339x/out/config + echo "releases:" >> ./build-a339x/out/config/releases.yaml + echo " - name: $steps.short-sha.outputs.sha" >> ./build-a339x/out/config/releases.yaml + echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./build-a339x/out/config/releases.yaml + ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a339x/out/config build-su95x: runs-on: ubuntu-latest env: @@ -128,6 +146,8 @@ jobs: A32NX_INSTRUMENTS_BUILD_WORKERS: 2 ZIP_NAME: headwindsim-aircraft-su100-95-dev.zip BUILD_DIR_NAME: development + CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} + CDN_BUCKET_DESTINATION: addons/su95x/development steps: - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main @@ -174,8 +194,15 @@ jobs: zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.ZIP_NAME }} ./headwindsim-aircraft-su100-95/ cd ../../ - name: Upload to CloudFlare CDN - env: - CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }} - CDN_BUCKET_DESTINATION: addons/su95x/development run: | ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-su95x/out/build-modules + - name: Get short SHA + uses: benjlevesque/short-sha@v2.2 + id: short-sha + - name: Upload Release Config to CloudFlare CDN + run: | + mkdir -p ./build-su95x/out/config + echo "releases:" >> ./build-su95x/out/config/releases.yaml + echo " - name: $steps.short-sha.outputs.sha" >> ./build-su95x/out/config/releases.yaml + echo " date: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> ./build-su95x/out/config/releases.yaml + ./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-su95x/out/config