diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b18a7cb6..54288318a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -350,6 +350,20 @@ jobs: path: .pakku/multimc-overrides/${{ needs.info.outputs.project_full_name }}-multimc.zip if-no-files-found: error + prepare-release: + name: 📦 Prepare release + needs: [info, build-modpack, build-server, build-multimc] + runs-on: ubuntu-latest + steps: + - name: Debug if conditions + run: | + echo "github.env.DEV_ENVIRONMENT: ${{ github.env.DEV_ENVIRONMENT }}" + echo "github.env.RELEASE_ON_GITHUB: ${{ github.env.RELEASE_ON_GITHUB }}" + echo "needs.info.outputs.exists: ${{ needs.info.outputs.exists }}" + + echo "${{ github.env.RELEASE_ON_GITHUB == 'true' && github.env.DEV_ENVIRONMENT == 'false' }}" + echo "${{ github.env.RELEASE_ON_GITHUB == 'true' && github.env.DEV_ENVIRONMENT == 'false' && needs.info.outputs.exists == 'false' }}" + release-github: name: 🚀 Release to GitHub needs: [info, build-modpack, build-server, build-multimc]