Skip to content

Commit 30c24b9

Browse files
committed
Add github actions for deploying the website
1 parent c203d01 commit 30c24b9

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches: [source]
5+
6+
jobs:
7+
publish:
8+
name: Publish website
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
- name: Install dependencies
14+
run: |
15+
pip install -U pip poetry
16+
poetry install
17+
- name: Build
18+
run: mkdocs build
19+
- name: Publish
20+
uses: actions/upload-pages-artifact@v3
21+
with:
22+
path: "site"

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
site_name: Bryan Tan's Website
2-
remote_branch: site
2+
remote_branch: source
3+
site_url: https://technius.net
34
nav:
45
- Home: index.md
56
- Research: research.md

0 commit comments

Comments
 (0)