Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || needs.check.outputs.cacheHit != 'true'
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.18.1'

- uses: actions/checkout@v4

- name: Cache Zotero Bibliography
Expand Down Expand Up @@ -107,7 +111,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.127.0'
hugo-version: '0.133.1'
extended: true

- name: Setup Node
Expand All @@ -120,11 +124,12 @@ jobs:
- run: npm install --verbose

- name: Build
run: hugo -e $hugoEnvironment
run: hugo -e $hugoEnvironment -d ~/temp/deploy

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

# - name: Deploy
# uses: peaceiris/actions-gh-pages@v4
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
4 changes: 4 additions & 0 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Production robots.txt
#
User-agent: *
Allow: /
5 changes: 4 additions & 1 deletion static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Placeholder file. Overwritten in production by setting enableRobotsTXT to true
# See config/production/hugo.yaml
#
User-agent: *
Allow: /
Disallow: /