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 088c429
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
node-version: 20
package-manager: pnpm
pnpm-version: 8.7.0

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
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "docs",
"type": "module",
"version": "0.0.1",
"packageManager": "[email protected]",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down

0 comments on commit 088c429

Please sign in to comment.