Skip to content

Commit

Permalink
update preview workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Revyn112 committed Dec 17, 2024
1 parent 795ac52 commit 96bbc25
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: preview
name: Preview
on:
push:
tags:
- 'preview*'

jobs:
build:
build-a339x:
runs-on: ubuntu-latest
env:
HDW_PRODUCTION_BUILD: 1
STANDALONE_ZIP_NAME: headwindsim-aircraft-a330-900-preview.zip
BUILD_DIR_NAME: staging
BUILD_DIR_NAME: preview-a339x
CLOUDFLARE_WORKER_PASSWORD: ${{ secrets.CLOUDFLARE_WORKER_PASSWORD }}
CDN_BUCKET_DESTINATION: addons/a339x/preview
AIRCRAFT_PROJECT_PREFIX: a339x
Expand Down Expand Up @@ -53,15 +53,11 @@ jobs:
run: |
./scripts/dev-env/run.sh ./scripts/build_a339x.sh --no-tty -j 4
docker system prune -af
- name: Build Installer fragments
- name: Build Fragmenter modules
run: |
node ./scripts/fragment.js
node ./scripts/fragment-a339x.js
cp ./build-a339x/out/build-modules/modules.json ./build-a339x/out/headwindsim-aircraft-a330-900/install.json
node ./scripts/install-source.js
mkdir ./${{ env.BUILD_DIR_NAME }}
cd ./build-a339x/out/
zip -r ../../${{ env.BUILD_DIR_NAME }}/${{ env.STANDALONE_ZIP_NAME }} ./headwindsim-aircraft-a330-900/
cd ../../
node ./scripts/install-source-a339x.js
- name: Upload to CloudFlare CDN
run: |
./scripts/cdn.sh $CDN_BUCKET_DESTINATION ./build-a339x/out/build-modules

0 comments on commit 96bbc25

Please sign in to comment.