docs: add starlight (#1859)
Co-authored-by: uncenter <[email protected]> Co-authored-by: Hammy <[email protected]> Co-authored-by: WalkQuackBack <[email protected]>
This commit is contained in:
46 files changed
+5967
-522
No files matched your search
@@ -0,0 +1,35 @@
|
||||
name: Deploy Docs to GH Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'docs/**'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Build & Upload Site
|
||||
uses: withastro/action@v4
|
||||
with:
|
||||
path: ./docs
|
||||
package-manager: [email protected]
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -1,20 +0,0 @@
|
||||
name: Deploy Website
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
paths: ["scripts/userstyles.yml"]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.repository == 'catppuccin/userstyles'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment: website
|
||||
steps:
|
||||
- name: Deploy via cURL
|
||||
shell: bash
|
||||
env:
|
||||
DEPLOY_HOOK: ${{ secrets.VERCEL_DEPLOY_HOOK }}
|
||||
run: curl -X POST "$DEPLOY_HOOK"
|
||||
Reference in new issue
Block a user