mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
create prereleases upon push to master
using github actions, create a prerelease for the latest commit to master. As such a development version will be available on github, in addition to the latest release. closes https://github.com/official-stockfish/Stockfish/pull/4622 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
a46087ee30
commit
a68a1c1154
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user