Browse Source

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

(other branches won't be available on api.haxe.org anyway)
Rudy Ges 3 days ago
parent
commit
bc7af4f12f
2 changed files with 2 additions and 2 deletions
  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: