diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 377770f9..7712818a 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -15,7 +15,7 @@ permissions: contents: write jobs: - publish-docs: + build-docs: runs-on: ubuntu-latest steps: - name: Checkout the code @@ -32,3 +32,24 @@ jobs: - name: Publish the documentation run: | mkdocs gh-deploy --force --message "cd: deploy docs from {sha}" + + publish-docs: + runs-on: ubuntu-latest + needs: build-docs + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: gh-pages + + - name: Setup pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "." + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/docs/CNAME b/CNAME similarity index 100% rename from docs/CNAME rename to CNAME