diff --git a/.github/workflows/release-builds.yml b/.github/workflows/release-builds.yml index 805240c16..e13d108ff 100644 --- a/.github/workflows/release-builds.yml +++ b/.github/workflows/release-builds.yml @@ -243,7 +243,8 @@ jobs: name: macOS universal needs: version runs-on: macos-15-xlarge - environment: release + environment: + name: ${{ github.repository == 'Brent001/effectcraft' && github.ref == 'refs/heads/release/community-downloads' && 'community-release' || 'release' }} env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: 0 @@ -370,7 +371,8 @@ jobs: name: Windows ${{ matrix.arch }} needs: [version, target_selection] runs-on: windows-latest - environment: release + environment: + name: ${{ github.repository == 'Brent001/effectcraft' && github.ref == 'refs/heads/release/community-downloads' && 'community-release' || 'release' }} strategy: fail-fast: false matrix: @@ -1145,7 +1147,8 @@ jobs: (inputs.has-flatpak-x86_64 && inputs.has-linux-x86_64) || (inputs.has-flatpak-aarch64 && inputs.has-linux-aarch64)) needs: [version, target_selection, macos, windows, linux, linux-riscv64, flatpak, arch, freebsd, web, server] runs-on: ubuntu-latest - environment: release + environment: + name: ${{ github.repository == 'Brent001/effectcraft' && github.ref == 'refs/heads/release/community-downloads' && 'community-release' || 'release' }} permissions: contents: write steps: @@ -1158,7 +1161,7 @@ jobs: # Fork release jobs should publish only after every requested build has succeeded. # The upstream repo retains its manual draft review/publish process. - name: Publish community release - if: github.repository == 'Brent001/effectcraft' + if: github.repository == 'Brent001/effectcraft' && github.ref == 'refs/heads/release/community-downloads' shell: bash env: VERSION: ${{ needs.version.outputs.version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49fa0433d..8aefe0095 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,9 @@ name: Release on: push: - branches: [release] + branches: + - release + - release/community-downloads workflow_dispatch: inputs: version: diff --git a/docs/releasing.md b/docs/releasing.md index 4aa877225..813ef2ed5 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -2,9 +2,10 @@ Every push to the `release` branch runs [`.github/workflows/release.yml`](../.github/workflows/release.yml). -In the `Brent001/effectcraft` fork, the first community release is version `0.13.1` and builds -Windows x64, Linux x86_64 and Web assets. After all selected build jobs succeed, it publishes -the GitHub Release automatically so the assets are publicly downloadable. The Windows installer +In the `Brent001/effectcraft` fork, pushing the dedicated `release/community-downloads` branch +runs the first community release at version `0.13.1` and builds Windows x64, Linux x86_64 and Web +assets. After all selected build jobs succeed, it publishes the GitHub Release automatically so +the assets are publicly downloadable. The Windows installer may be unsigned when code-signing credentials are unavailable; the release notes disclose this, and the release includes `SHA256SUMS.txt`.