diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d2fd220..a4d0a7c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,7 @@ on: push: branches: - gh-pages + - main tags: - "v*" workflow_dispatch: @@ -26,7 +27,7 @@ jobs: GIT_COMMITTER_NAME: ci-bot GIT_COMMITTER_EMAIL: ci-bot@example.com - name: Checkout gh-pages - run: git checkout gh-pages + run: git restore . && git checkout gh-pages - uses: actions/upload-pages-artifact@v3 id: deployment with: