X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=.github%2Fworkflows%2Fstockfish.yml;fp=.github%2Fworkflows%2Fstockfish.yml;h=ca52ffe08b36317085d86ff4df50e240d59c54bd;hp=082c65def1831a3b28ee2d2a59918a0466e51ba8;hb=a68a1c11543eef6808181c92e0e7e5fb3f826f21;hpb=a46087ee30ace00e1edd8963ee33b0a1b87031b6 diff --git a/.github/workflows/stockfish.yml b/.github/workflows/stockfish.yml index 082c65de..ca52ffe0 100644 --- a/.github/workflows/stockfish.yml +++ b/.github/workflows/stockfish.yml @@ -12,6 +12,30 @@ on: - master - tools jobs: + Prerelease: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # returns null if no pre-release exists + - name: Get Commit SHA of Latest Pre-release + run: | + # Install required packages + sudo apt-get update + sudo apt-get install -y curl jq + + echo "COMMIT_SHA=$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< $(curl -s https://api.github.com/repos/${{ github.repository_owner }}/Stockfish/releases))" >> $GITHUB_ENV + + # delete old previous pre-release and tag + - uses: dev-drprasad/delete-tag-and-release@v0.2.1 + if: env.COMMIT_SHA != 'null' + with: + tag_name: ${{ env.COMMIT_SHA }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + Sanitizers: uses: ./.github/workflows/stockfish_sanitizers.yml Tests: