Skip to content

Commit ca7e7f1

Browse files
committed
chore: ghpages (Fixes #3)
1 parent 5d846b8 commit ca7e7f1

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/gh-pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
fetch-depth: 0
20+
21+
- name: Setup Hugo
22+
uses: peaceiris/actions-hugo@v3
23+
with:
24+
hugo-version: '0.133.0'
25+
extended: true
26+
27+
- name: Build
28+
run: hugo --minify
29+
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v4
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./public

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "/"
1+
baseURL = "https://ofdn.github.io/clda/"
22
languageCode = "en-us"
33
DefaultContentLanguage = "en"
44
title = "CLDA-Community language documentation and archiving Training"

0 commit comments

Comments
 (0)