]> git.sesse.net Git - stockfish/blobdiff - .github/workflows/stockfish.yml
Add binaries to releases with github actions
[stockfish] / .github / workflows / stockfish.yml
index 6345b27cb7424efda303423cf2e88e13e97a1abd..082c65def1831a3b28ee2d2a59918a0466e51ba8 100644 (file)
@@ -1,6 +1,8 @@
 name: Stockfish
 on:
   push:
+    tags:        
+      - '*' 
     branches:
       - master
       - tools
@@ -17,8 +19,8 @@ jobs:
   Compiles:
     uses: ./.github/workflows/stockfish_compile_test.yml
   Binaries:
-    if: github.ref == 'refs/heads/master'
+    if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
     uses: ./.github/workflows/stockfish_binaries.yml
   ARM_Binaries:
-    if: github.ref == 'refs/heads/master'
+    if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
     uses: ./.github/workflows/stockfish_arm_binaries.yml