Fix release creation race condition by adding a dedicated create-release job

This commit is contained in:
peoplemiau1
2026-05-29 09:18:27 +03:00
parent 619493bcbd
commit 768e2fc0dc

View File

@@ -100,10 +100,28 @@ jobs:
name: release-notes name: release-notes
path: .github/release-notes.md path: .github/release-notes.md
# ── Create Release (prevent race conditions) ───────────────────────────────
create-release:
needs: [setup, notes]
runs-on: ubuntu-latest
steps:
- name: Download Release Notes
uses: actions/download-artifact@v4
with:
name: release-notes
path: .github
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.setup.outputs.tag }}
body_path: .github/release-notes.md
prerelease: ${{ needs.setup.outputs.prerelease == 'true' }}
# ── Linux Binaries Matrix ────────────────────────────────────────────────── # ── Linux Binaries Matrix ──────────────────────────────────────────────────
build-linux: build-linux:
if: ${{ github.event_name == 'push' || github.event.inputs.run_linux == 'true' }} if: ${{ github.event_name == 'push' || github.event.inputs.run_linux == 'true' }}
needs: [setup, notes] needs: [setup, notes, create-release]
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -280,7 +298,7 @@ jobs:
# ── Publish Packages to Release (Out of Matrix) ──────────────────────────── # ── Publish Packages to Release (Out of Matrix) ────────────────────────────
publish-dexoron-packages: publish-dexoron-packages:
needs: [setup, notes, build-linux-packages] needs: [setup, notes, build-linux-packages, create-release]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download Release Notes - name: Download Release Notes
@@ -309,7 +327,7 @@ jobs:
# ── macOS Matrix ─────────────────────────────────────────────────────────── # ── macOS Matrix ───────────────────────────────────────────────────────────
build-macos: build-macos:
if: ${{ github.event_name == 'push' || github.event.inputs.run_macos == 'true' }} if: ${{ github.event_name == 'push' || github.event.inputs.run_macos == 'true' }}
needs: [setup, notes] needs: [setup, notes, create-release]
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -355,7 +373,7 @@ jobs:
# ── BSD Systems Matrix ───────────────────────────────────────────────────── # ── BSD Systems Matrix ─────────────────────────────────────────────────────
build-bsd: build-bsd:
if: ${{ github.event_name == 'push' || github.event.inputs.run_bsd == 'true' }} if: ${{ github.event_name == 'push' || github.event.inputs.run_bsd == 'true' }}
needs: [setup, notes] needs: [setup, notes, create-release]
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@@ -457,7 +475,7 @@ jobs:
# ── Windows Matrix ───────────────────────────────────────────────────────── # ── Windows Matrix ─────────────────────────────────────────────────────────
build-windows: build-windows:
if: ${{ github.event_name == 'push' || github.event.inputs.run_windows == 'true' }} if: ${{ github.event_name == 'push' || github.event.inputs.run_windows == 'true' }}
needs: [setup, notes] needs: [setup, notes, create-release]
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
fail-fast: false fail-fast: false