Deploy docs workflow
@@ -8,6 +8,12 @@ on:
- 'v*'
workflow_dispatch:
+# Only allow one docs build at a time so that overlapping stale builds will get
+# cancelled automatically.
+concurrency:
+ group: deploy_docs
+ cancel-in-progress: true
+
jobs:
build-and-deploy:
name: Build & Deploy
@@ -32,11 +38,16 @@ jobs:
- name: Build Docs
uses: GabrielBB/xvfb-action@v1
+ env:
+ GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }}
+ GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }}
with:
run: make docs
-# - name: Deploy docs
-# uses: JamesIves/github-pages-deploy-action@4.1.5
-# with:
-# branch: gh-pages
-# folder: docs/_build/html
+ - name: Deploy Docs
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: docs/_build
+ publish_branch: gh-pages
+ cname: napari.org
