Skip to content

Commit

Permalink
Merge pull request wannier-developers#481 from qiaojunfeng/docs_deploy
Browse files Browse the repository at this point in the history
Fix mkdocs deploy
  • Loading branch information
giovannipizzi committed Feb 16, 2024
2 parents c29d331 + 6dea358 commit 8515172
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docs_ci.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: CI test docs
name: Build docs
on:
pull_request:
paths:
- docs/**
push:
branches:
- develop

jobs:
docs:
Expand All @@ -26,3 +27,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENABLE_MKDOCS_GIT_COMMITTERS: False

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/develop'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/site
22 changes: 0 additions & 22 deletions .github/workflows/docs_deploy.yml

This file was deleted.

0 comments on commit 8515172

Please sign in to comment.