From d59390b7b1dab6cd8d1c9adb1f212b4227c7d449 Mon Sep 17 00:00:00 2001 From: phantom Date: Thu, 18 Dec 2025 17:44:21 -0600 Subject: [PATCH] Setup HUGO --- .gitea/workflows/push.yml | 15 ++++++++++++--- .gitmodules | 3 --- index.html | 13 ------------- robots.txt | 2 -- 4 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 index.html delete mode 100644 robots.txt diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml index bae6008..d697779 100644 --- a/.gitea/workflows/push.yml +++ b/.gitea/workflows/push.yml @@ -13,14 +13,23 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v6 - + with: + submodules: recursive + fetch-depth: 0 + - name: Setup SSH run: | mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/act chmod 600 ~/.ssh/act - + + - name: Build HUGO Site + run: | + apt update + apt install -y hugo + hugo --gc --minify + - name: Push to server run: | ssh -i ~/.ssh/act -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "rm -rf /srv/www/shadeouts.net/*" - scp -i ~/.ssh/act -o Port=${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no * ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/www/shadeouts.net/ + scp -i ~/.ssh/act -o Port=${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no public/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/www/shadeouts.net/ diff --git a/.gitmodules b/.gitmodules index 1f9cdc0..89af1b0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "themes/papermod"] - path = themes/papermod - url = https://github.com/adityatelange/hugo-PaperMod.git [submodule "themes/PaperMod"] path = themes/PaperMod url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/index.html b/index.html deleted file mode 100644 index c143fd0..0000000 --- a/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Shadeouts - - - -

Welcome to Shadeouts.

- - diff --git a/robots.txt b/robots.txt deleted file mode 100644 index eb05362..0000000 --- a/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: