Skip to content

Commit

Permalink
Add github actions for deploying the website
Browse files Browse the repository at this point in the history
  • Loading branch information
Technius committed Jun 29, 2024
1 parent c203d01 commit acc59f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish
on:
push:
branches: [source]

jobs:
publish:
name: Publish website
on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install -U pip poetry
poetry install
- name: Build
run: mkdocs build
- name: Publish
uses: actions/upload-pages-artifact@v3
with:
path: "site"
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
site_name: Bryan Tan's Website
remote_branch: site
remote_branch: source
site_url: https://technius.net
nav:
- Home: index.md
- Research: research.md
Expand Down

0 comments on commit acc59f1

Please sign in to comment.