diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 00000000..d5990195 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,24 @@ +name: Publish Docs to GitHub Pages + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs + publish_branch: gh-pages + enable_jekyll: true diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..8ec5ea62 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,15 @@ +--- +--- + + +
+ +Redirecting to MCP Go SDK documentation ({{ site.github.latest_release.tag_name }})...
+For API reference, see pkg.go.dev.
+ +