Skip to content

Commit a3340b4

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

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches: [source]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run
13+
# in-progress and latest queued. However, do NOT cancel in-progress runs as we
14+
# want to allow these production deployments to complete.
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
publish:
21+
name: Publish website
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-python@v5
26+
- name: Install dependencies
27+
run: |
28+
python -m venv ./.venv
29+
source ./.venv/bin/activate
30+
pip install -U pip poetry
31+
poetry install
32+
poetry lock --check
33+
- name: Build
34+
run: |
35+
./.venv/bin/mkdocs build
36+
- uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: "site"
39+
- name: Deploy to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v4

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)