From af4ec794c2f5e6f765d44f3712dcb7a2c798f68c Mon Sep 17 00:00:00 2001 From: Antoine Hoorelbeke Date: Sat, 28 Jun 2025 13:50:15 +0200 Subject: [PATCH] add workflow to deploy to pages --- .github/workflows/deploy-to-pages.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy-to-pages.yml diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml new file mode 100644 index 0000000..e07ad46 --- /dev/null +++ b/.github/workflows/deploy-to-pages.yml @@ -0,0 +1,27 @@ +name: GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.102.3' + + - name: Build + run: hugo --minify + + - name: Deploy + uses: actions/github-pages@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + directory: public