diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 616f8efa..8951adad 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -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 @@ -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