16 if: github.ref == 'refs/heads/master'
17 runs-on: ubuntu-latest
19 - uses: actions/checkout@v3
23 # returns null if no pre-release exists
24 - name: Get Commit SHA of Latest Pre-release
26 # Install required packages
28 sudo apt-get install -y curl jq
30 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
32 # delete old previous pre-release and tag
33 - uses: dev-drprasad/delete-tag-and-release@v0.2.1
34 if: env.COMMIT_SHA != 'null'
36 tag_name: ${{ env.COMMIT_SHA }}
38 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 uses: ./.github/workflows/stockfish_sanitizers.yml
43 uses: ./.github/workflows/stockfish_test.yml
45 uses: ./.github/workflows/stockfish_compile_test.yml
47 if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
48 uses: ./.github/workflows/stockfish_binaries.yml
50 if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
51 uses: ./.github/workflows/stockfish_arm_binaries.yml