-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix add short sha
- Loading branch information
Showing
1 changed file
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,18 +60,27 @@ 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/[email protected] | ||
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: | ||
A32NX_PRODUCTION_BUILD: 1 | ||
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,18 +127,27 @@ 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/[email protected] | ||
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: | ||
A32NX_PRODUCTION_BUILD: 1 | ||
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/[email protected] | ||
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 |