Explorar el Código

[CI] Only deploy API docs for tag and development branch

(other branches won't be available on api.haxe.org anyway)
Rudy Ges hace 3 días
padre
commit
bc7af4f12f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      .github/workflows/main.yml
  2. 1 1
      extra/github-actions/workflows/main.yml

+ 1 - 1
.github/workflows/main.yml

@@ -938,7 +938,7 @@ jobs:
 
 
   deploy_apidoc:
-    if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request'
+    if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/development')
     needs: [linux-test, linux-arm64-test, mac-test, windows64-test]
     runs-on: ubuntu-22.04
     steps:

+ 1 - 1
extra/github-actions/workflows/main.yml

@@ -544,7 +544,7 @@ jobs:
 
 
   deploy_apidoc:
-    if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request'
+    if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/development')
     needs: [linux-test, linux-arm64-test, mac-test, windows64-test]
     runs-on: ubuntu-22.04
     steps: