From bab872fea87ee5dc0aa82f87c84aa57edd52da88 Mon Sep 17 00:00:00 2001 From: Lukas Nagel Date: Sat, 9 Nov 2024 11:17:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/.gitkeep | 0 .github/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/.gitkeep create mode 100644 .github/workflows/build.yaml diff --git a/.github/.gitkeep b/.github/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..a2a5742 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,28 @@ +name: Deploy Hugo Site to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + + - name: Build Hugo Site + run: hugo --minify # Use `hugo --minify` for production build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public