From f17ccc4e54bb365f7a5718e41385f6af6a4c3355 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 3 Sep 2025 16:37:00 +0200 Subject: [PATCH 1/2] Restore gh-pages workflow This was dropped erroneously --- .github/workflows/gh-pages.yml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 000000000..ff2460f66 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,39 @@ +name: github pages + +on: + push: + branches: + - main # Set a branch to deploy + pull_request: + +jobs: + deploy: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v5 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + + - run: gem install asciidoctor rouge + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: '0.133.1' + extended: true + + - name: Build + run: | + hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public From e510c9307bb046f3a2978d1069243ae26d4364bc Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 3 Sep 2025 16:39:37 +0200 Subject: [PATCH 2/2] Stop running gh-pages on pull requests It is not needed and the build part is taken care of by the netlify workflow anyways. --- .github/workflows/gh-pages.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ff2460f66..2df8a0706 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,7 +4,6 @@ on: push: branches: - main # Set a branch to deploy - pull_request: jobs: deploy: