Skip to content

Commit 67a57f6

Browse files
committed
github pages actions
1 parent 96edad5 commit 67a57f6

2 files changed

Lines changed: 53 additions & 2 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: "npm"
27+
cache-dependency-path: docs/package-lock.json
28+
29+
- name: Install dependencies
30+
run: npm --prefix docs ci
31+
32+
- name: Build site
33+
run: npm --prefix docs run build
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: docs/build
39+
40+
deploy:
41+
needs: build
42+
runs-on: ubuntu-latest
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

docs/docusaurus.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
const config = {
22
title: "FrameScript Docs",
33
tagline: "Hello, world!",
4-
url: "http://localhost",
5-
baseUrl: "/",
4+
url: "https://frame-script.github.io",
5+
baseUrl: "/FrameScript/",
6+
organizationName: "frame-script",
7+
projectName: "FrameScript",
68
onBrokenLinks: "throw",
79
onBrokenMarkdownLinks: "warn",
810
i18n: {

0 commit comments

Comments
 (0)