From acc59f1ffead4bdb651e94f46912e538911948c8 Mon Sep 17 00:00:00 2001 From: Bryan Tan Date: Sat, 29 Jun 2024 15:42:28 -0700 Subject: [PATCH] Add github actions for deploying the website --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ mkdocs.yml | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..bcea448 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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" diff --git a/mkdocs.yml b/mkdocs.yml index 3cea431..348a56d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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