Skip to content

Commit

Permalink
ci: docs deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWid committed Oct 27, 2024
1 parent 05a96dc commit 8a44ce0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy docs to GitHub Pages
on:
push:
branches: [docs-site]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: withastro/action@v3
with:
path: ./docs
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import starlight from "@astrojs/starlight";

export default defineConfig({
site: "https://matthewwid.github.io",
base: "better-sse",
integrations: [
starlight({
title: "Better SSE",
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"astro": "^4.16.7",
"sharp": "^0.32.6",
"typescript": "^5.6.3"
}
},
"packageManager": "[email protected]"
}

0 comments on commit 8a44ce0

Please sign in to comment.