Skip to content

Commit 8e6aded

Browse files
committed
add CI for deploy
1 parent e4c170a commit 8e6aded

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Docusaurus to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build website
24+
run: npm run build
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v4
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./build
31+
cname: galio.io

docusaurus.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const config: Config = {
1717
},
1818

1919
// Set the production url of your site here
20-
url: 'https://your-docusaurus-site.example.com',
20+
url: 'https://galio.io',
2121
// Set the /<baseUrl>/ pathname under which your site is served
2222
// For GitHub pages deployment, it is often '/<projectName>/'
2323
baseUrl: '/',
2424

2525
// GitHub pages deployment config.
2626
// If you aren't using GitHub pages, you don't need these.
27-
organizationName: 'st-miki', // Usually your GitHub org/user name.
28-
projectName: 'Galio', // Usually your repo name.
27+
organizationName: 'galio-org',
28+
projectName: 'galio-org.github.io',
2929

3030
onBrokenLinks: 'throw',
3131
onBrokenMarkdownLinks: 'warn',

0 commit comments

Comments
 (0)