diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/website.yaml similarity index 76% rename from .github/workflows/gh-pages.yaml rename to .github/workflows/website.yaml index 3b58fe8b4..1fcbf7208 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/website.yaml @@ -1,9 +1,12 @@ -name: Publish GitHub Pages +name: generate_website on: push: branches: - main + paths: + - ".github/workflows/website.yaml" + - "docs/**" jobs: deploy: @@ -21,3 +24,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/book/book + destination_dir: ./website