Skip to content

Commit

Permalink
ci: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Sep 7, 2023
1 parent f107956 commit abb3b98
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy starlight documentation to GitHub Pages

on:
push:
branches: [ upload ]
workflow_dispatch:

defaults:
run:
working-directory: docs

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
path: docs
package-manager: pnpm

deploy:
needs: build
runs-on: ubuntu-22.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 1 addition & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test": { "include": ["./tools"] },
"lint": { "include": ["./tools"] },
"fmt": {
"exclude": ["./docs/dist"],
"include": ["./tools", "./doc", "./docs", "*.md"],
"semiColons": false,
"lineWidth": 100
Expand Down
Empty file added docs/.nojekyll
Empty file.
4 changes: 2 additions & 2 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const github = "https://github.com/cataclysmbnteam/Cataclysm-BN"

// https://astro.build/config
export default defineConfig({
// site: 'https://scarf005.github.io',
// base: '/Cataclysm-BN/',
site: "https://scarf005.github.io",
base: "/Cataclysm-BN",
integrations: [
starlight({
title: "Cataclysm: Bright Nights",
Expand Down

0 comments on commit abb3b98

Please sign in to comment.