Skip to content

Commit 0453579

Browse files
committed
Migrate to GitHub Pages
1 parent e53f26e commit 0453579

2 files changed

Lines changed: 16 additions & 37 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy
1+
name: Deploy to GitHub Pages
22

33
on:
44
workflow_dispatch: {}
@@ -8,24 +8,19 @@ on:
88

99
env:
1010
hugo_version: 0.115.3
11-
# unused, because GitHub Actions won't allow you to use it in uses:
12-
# context for now
13-
gmnhg_version: v0.4.2
1411

1512
jobs:
16-
build-deploy:
17-
name: Build & Deploy Website
13+
deploy:
14+
name: Deploy to GitHub Pages
1815
runs-on: ubuntu-latest
1916
steps:
2017
- name: Checkout
2118
uses: actions/checkout@v2
2219
- name: Install Hugo
2320
run: |
24-
wget \
25-
-O hugo.tar.gz \
26-
https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_linux-amd64.tar.gz
27-
tar -xv \
28-
-f hugo.tar.gz \
21+
wget -qO- \
22+
https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_linux-amd64.tar.gz \
23+
| tar -x -z -v \
2924
-C /usr/local/bin \
3025
hugo
3126
- name: Build website with Hugo
@@ -34,28 +29,9 @@ jobs:
3429
hugo -d ./hugo
3530
env:
3631
HUGO_ENV: production
37-
- name: Build Gemini site with gmnhg
38-
uses: docker://ghcr.io/tdemin/gmnhg:v0.4.2
32+
- name: Deploy to GitHub Pages branch
33+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
3934
with:
40-
args: gmnhg -output ./gmnhg
41-
- name: Deploy web site
42-
# v6.0.0, strict commit pinning due to handling secrets
43-
uses: Burnett01/rsync-deployments@45d84ad5f6c174f3e0ffc50e9060a9666d09c16e
44-
with:
45-
switches: -avzr --delete
46-
path: hugo/
47-
remote_path: ${{ secrets.DEPLOY_ROOT_PATH }}/blog.tdem.in
48-
remote_host: ${{ secrets.DEPLOY_HOST }}
49-
remote_user: ${{ secrets.DEPLOY_USER }}
50-
remote_key: ${{ secrets.DEPLOY_KEY }}
51-
- name: Deploy Gemini site
52-
# GitHub Actions doesn't allow anchors in workflow YAML, so
53-
# duplicating this is required
54-
uses: Burnett01/rsync-deployments@45d84ad5f6c174f3e0ffc50e9060a9666d09c16e
55-
with:
56-
switches: -avzr --delete
57-
path: gmnhg/
58-
remote_path: ${{ secrets.DEPLOY_ROOT_PATH }}/gemini
59-
remote_host: ${{ secrets.DEPLOY_HOST }}
60-
remote_user: ${{ secrets.DEPLOY_USER }}
61-
remote_key: ${{ secrets.DEPLOY_KEY }}
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./hugo
37+
cname: tdem.in

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ theme with portions of it originally made by [Arjun Krishna Babu][akb].
99

1010
## Project Gemini
1111

12-
This site is also accessible on Gemini as gemini://tdem.in, and is generated
13-
with [gmnhg](https://github.com/tdemin/gmnhg).
12+
This site was originally accessible on Gemini as `gemini://tdem.in`, and
13+
was generated with [gmnhg][gmnhg]. You might still find supporting code
14+
for it inside the repository, but it's not guaranteed to work.
15+
16+
[gmnhg]: https://github.com/tdemin/gmnhg
1417

1518
## License
1619

0 commit comments

Comments
 (0)