diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5b5d2cb3c..9272d79df 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 @@ -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 @@ -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 diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 000000000..f59e94455 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,4 @@ +# Production robots.txt +# +User-agent: * +Allow: / diff --git a/static/robots.txt b/static/robots.txt index 14267e903..2fe14329d 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,2 +1,5 @@ +# Placeholder file. Overwritten in production by setting enableRobotsTXT to true +# See config/production/hugo.yaml +# User-agent: * -Allow: / \ No newline at end of file +Disallow: /