diff --git a/.github/workflows/stockfish.yml b/.github/workflows/stockfish.yml index a7ecb8acb..f48f6ae94 100644 --- a/.github/workflows/stockfish.yml +++ b/.github/workflows/stockfish.yml @@ -28,6 +28,7 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false + fetch-depth: 0 # returns null if no pre-release exists - name: Get Commit SHA of Latest Pre-release @@ -70,6 +71,17 @@ jobs: echo "OFFICIAL_RELEASE=false" >> $GITHUB_ENV fi + # Get recent commits for release body + - name: Get commits in this push + id: recent_commits + run: | + COMMITS=$(git log \ + --format="- [\`%h\`](https://github.com/${{ github.repository }}/commit/%H) *%s*" \ + ${{ github.event.before }}..HEAD) + echo "COMMITS<> $GITHUB_OUTPUT + echo "$COMMITS" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + # Create a new pre-release, the other upload_binaries.yml will upload the binaries # to this pre-release. - name: Create Prerelease @@ -79,6 +91,23 @@ jobs: name: Stockfish dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }} tag_name: stockfish-dev-${{ env.COMMIT_DATE }}-${{ env.COMMIT_SHA }} prerelease: true + body: | + Precompiled binaries of the latest Stockfish development version, built automatically on every commit. + + > [!NOTE] + > For stable, thoroughly tested builds use the [official releases](https://github.com/official/stockfish/releases). + > Pre-releases may contain bugs. + + *Some platforms ship a **universal binary** that automatically selects the best + instruction set for your CPU - no manual selection needed.* + + --- + + ## Commits + + ${{ steps.recent_commits.outputs.COMMITS }} + + [View all commits →](https://github.com/${{ github.repository }}/commits/master) Matrix: name: Prepare matrices runs-on: ubuntu-latest