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