Skip to content

Commit

Permalink
chore: add build release file
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Revyn112 committed Nov 16, 2023
1 parent 68a751c commit 0a06164
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 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,24 @@ 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: Upload Release Config to CloudFlare CDN
run: |
mkdir -p ./build-a333x/out/config
echo "releases:" >> ./build-a333x/out/config/releases.yaml
echo " - name: $GITHUB_REF_NAME" >> ./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 +124,24 @@ 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: Upload Release Config to CloudFlare CDN
run: |
mkdir -p ./build-a339x/out/config
echo "releases:" >> ./build-a339x/out/config/releases.yaml
echo " - name: $GITHUB_REF_NAME" >> ./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 +188,12 @@ 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: Upload Release Config to CloudFlare CDN
run: |
mkdir -p ./build-su95x/out/config
echo "releases:" >> ./build-su95x/out/config/releases.yaml
echo " - name: $GITHUB_REF_NAME" >> ./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 0a06164

Please sign in to comment.