From 04c2423fa6d96fe1dcdfc08f1126300973f640b9 Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 18 May 2023 14:48:11 +0200 Subject: [PATCH] Only publish API docs on release --- .github/workflows/apidocs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apidocs.yml b/.github/workflows/apidocs.yml index 78f69b5..5e6fb89 100644 --- a/.github/workflows/apidocs.yml +++ b/.github/workflows/apidocs.yml @@ -1,7 +1,8 @@ name: Generate and deploy API documentation + on: - push: - branches: ["master"] + release: + types: [published] workflow_dispatch: permissions: @@ -27,7 +28,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: "3.9" - run: pip install -e . - run: spoolman_docs - name: Setup Pages @@ -35,7 +36,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - path: 'docs/' + path: "docs/" - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2