From 8d8606402e88aee0e9091c0230e3f990549c025c Mon Sep 17 00:00:00 2001 From: "Randolph W. Aarseth II" Date: Fri, 22 Nov 2024 18:53:07 -0700 Subject: [PATCH] Updated all workflows, except windows with the new version management, handling now everything should be building with that version that is generated. --- .github/workflows/android_builds.yml | 46 +++++++++++++++++++-- .github/workflows/ios_builds.yml | 29 +++++++++++++- .github/workflows/linux_builds.yml | 42 +++++++++++++++++++- .github/workflows/macos_builds.yml | 42 +++++++++++++++++++- .github/workflows/mono_glue_build.yml | 31 ++++++++++++++- .github/workflows/runner.yml | 57 +++++++++++++++++++-------- .github/workflows/web_builds.yml | 44 +++++++++++++++++++-- 7 files changed, 263 insertions(+), 28 deletions(-) diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml index ed37c52..0f02017 100644 --- a/.github/workflows/android_builds.yml +++ b/.github/workflows/android_builds.yml @@ -10,6 +10,22 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string # Global Settings @@ -137,6 +153,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Set up Java 17 uses: actions/setup-java@v4 with: @@ -204,6 +230,7 @@ jobs: build_os: android checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} @@ -240,7 +267,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -271,6 +298,7 @@ jobs: build_os: android checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} @@ -307,7 +335,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}-meta run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -494,6 +522,18 @@ jobs: build_os: android checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} + + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Set up Java 17 @@ -582,7 +622,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} diff --git a/.github/workflows/ios_builds.yml b/.github/workflows/ios_builds.yml index f4e2d25..5f255fc 100644 --- a/.github/workflows/ios_builds.yml +++ b/.github/workflows/ios_builds.yml @@ -10,6 +10,22 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string # Global Settings env: @@ -88,6 +104,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -102,6 +128,7 @@ jobs: build_os: ios checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} # - uses: maxim-lobanov/setup-xcode@v1 @@ -237,7 +264,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 4fd5f8d..67091d3 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -10,6 +10,22 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string # Global Settings env: @@ -127,6 +143,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -141,6 +167,7 @@ jobs: build_os: linux checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} # TODO: Figure out somehow how to embed this one. - name: Distro-specific Deps Install @@ -274,7 +301,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -383,6 +410,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -397,6 +434,7 @@ jobs: build_os: linux checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Distro-specific Deps Install @@ -531,7 +569,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} diff --git a/.github/workflows/macos_builds.yml b/.github/workflows/macos_builds.yml index a1da6bd..9caf28c 100644 --- a/.github/workflows/macos_builds.yml +++ b/.github/workflows/macos_builds.yml @@ -10,6 +10,22 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string # Global Settings env: @@ -113,6 +129,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -127,6 +153,7 @@ jobs: build_os: macos checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Restore Godot build cache uses: ./.github/actions/godot-cache-restore @@ -283,7 +310,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -356,6 +383,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -370,6 +407,7 @@ jobs: build_os: macos checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Restore Godot build cache @@ -521,7 +559,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} diff --git a/.github/workflows/mono_glue_build.yml b/.github/workflows/mono_glue_build.yml index 79dac65..5eec6fe 100644 --- a/.github/workflows/mono_glue_build.yml +++ b/.github/workflows/mono_glue_build.yml @@ -10,6 +10,23 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string + # Global Settings env: # Used for the cache key. Add version suffix to force clean build. @@ -74,6 +91,17 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ steps.new_version.outputs.major }} + external_minor: ${{ steps.new_version.outputs.minor }} + external_patch: ${{ steps.new_version.outputs.patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ steps.get_sha.outputs.sha }} + + # Install Linux dependencies for tests - name: Linux dependencies for tests run: | @@ -120,6 +148,7 @@ jobs: build_os: linux checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Compilation uses: ./.github/actions/godot-build @@ -208,7 +237,7 @@ jobs: name: ${{ env.DEPLOY_TYPE }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}/${{ env.DEPLOY_TYPE }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index 413965b..e5b17b7 100644 --- a/.github/workflows/runner.yml +++ b/.github/workflows/runner.yml @@ -50,7 +50,7 @@ jobs: with: file_path: version.py - - name: Does Node.js Exist? + - name: Generate Changelog.json env: GITHUB_TOKEN: ${{ github.token }} GITHUB_OWNER: blazium-engine @@ -69,21 +69,6 @@ jobs: with: file_path: ${{ github.workspace }}/changelog.json - - name: Update new Version Information to version.py - uses: ./.github/actions/set-repos-version - with: - file_path: ${{ github.workspace }}/version.py - external_major: ${{ steps.new_version.outputs.major }} - external_minor: ${{ steps.new_version.outputs.minor }} - external_patch: ${{ steps.new_version.outputs.patch }} - external_status: ${{ github.event.client_payload.type || 'nightly' }} - external_sha: ${{ steps.get_sha.outputs.sha }} - - - name: Did it Write? - run: cat $GITHUB_WORKSPACE/version.py - - - static-checks: name: 📊 Static checks @@ -93,6 +78,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} web-build: name: 🌐 Web @@ -103,6 +92,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} monoglue-build: name: Mono Glue @@ -113,6 +106,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} android-build: name: 🤖 Android @@ -123,6 +120,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} ios-build: name: 🍏 iOS @@ -133,6 +134,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} linux-build: name: 🐧 Linux @@ -143,6 +148,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} macos-build: name: 🍎 macOS @@ -153,6 +162,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} windows-build: name: 🏁 Windows @@ -163,6 +176,10 @@ jobs: with: build_sha: ${{ needs.get-latest-sha.outputs.build_sha }} runner_id: ${{ github.run_id }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} deploy: name: Deploy @@ -179,6 +196,10 @@ jobs: linux-build: ${{ needs.linux-build.result }} android-build: ${{ needs.android-build.result }} ios-build: ${{ needs.ios-build.result }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} cleanup: @@ -196,3 +217,7 @@ jobs: linux-build: ${{ needs.linux-build.result }} android-build: ${{ needs.android-build.result }} ios-build: ${{ needs.ios-build.result }} + new_major: ${{ needs.get-latest-sha.outputs.new_major }} + new_minor: ${{ needs.get-latest-sha.outputs.new_minor }} + new_patch: ${{ needs.get-latest-sha.outputs.new_patch }} + new_version: ${{ needs.get-latest-sha.outputs.new_version }} diff --git a/.github/workflows/web_builds.yml b/.github/workflows/web_builds.yml index 0d96ef3..2dabc06 100644 --- a/.github/workflows/web_builds.yml +++ b/.github/workflows/web_builds.yml @@ -10,6 +10,22 @@ on: description: "Runner ID of the Parent Runner" required: true type: string + new_major: + description: "New Major # for Version" + required: true + type: string + new_minor: + description: "New Minor # for Version" + required: true + type: string + new_patch: + description: "New Patch # for Version" + required: true + type: string + new_version: + description: "New Version that'll be Deployed" + required: true + type: string # Global Settings env: @@ -107,6 +123,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -121,6 +147,7 @@ jobs: build_os: web checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Set up Emscripten latest uses: mymindstorm/setup-emsdk@v14 @@ -179,7 +206,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -280,6 +307,16 @@ jobs: cp -r ci_cd_repo/.github/* .github/ rm -rf ci_cd_repo + - name: Update new Version Information to version.py + uses: ./.github/actions/set-repos-version + with: + file_path: ${{ github.workspace }}/version.py + external_major: ${{ inputs.new_major }} + external_minor: ${{ inputs.new_minor }} + external_patch: ${{ inputs.new_patch }} + external_status: ${{ github.event.client_payload.type || 'nightly' }} + external_sha: ${{ inputs.build_sha }} + - name: Notify Cerebro of Build Starting uses: ./.github/actions/cerebro-started with: @@ -294,6 +331,7 @@ jobs: build_os: web checksum: ${{ inputs.build_sha }} production: ${{ github.event.client_payload.production }} + version: ${{ inputs.new_version }} - name: Set up Emscripten latest uses: mymindstorm/setup-emsdk@v14 @@ -352,7 +390,7 @@ jobs: name: ${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }} run_id: ${{ inputs.runner_id }} file_url: ${{ secrets.CDN_URL }}/${{ env.DEPLOY_TYPE }}/${{ github.event.client_payload.type || 'nightly' }}${{ startsWith(matrix.target, 'template_') && '/template' || '' }}/${{ matrix.cache-name }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz - version: "" + version: ${{ inputs.new_version }} cerebro_url: ${{ secrets.CEREBRO_URL }} cerebro_auth: ${{ secrets.BLAZIUM_AUTH }} @@ -435,7 +473,7 @@ jobs: push: true tags: | ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME_BASE }}-${{ github.event.client_payload.type || 'nightly' }}:latest - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME_BASE }}-${{ github.event.client_payload.type || 'nightly' }}:${{ inputs.build_sha }} + ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME_BASE }}-${{ github.event.client_payload.type || 'nightly' }}:${{ inputs.new_version }} - name: Notify Cerebro to Deploy Web Build uses: ./.github/actions/cerebro-deploy