Skip to content

Commit

Permalink
chore: add build release file
Browse files Browse the repository at this point in the history
fix

add short sha
  • Loading branch information
Revyn112 committed Nov 16, 2023
1 parent 68a751c commit bc205ac
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit bc205ac

Please sign in to comment.