diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d6df263..601d55e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,11 +43,6 @@ jobs: tar -xvzf hugo.tar.gz sudo mv hugo /usr/local/bin - - name: Build Hugo Website - id: build - run: | - hugo - - name: Install SSH Key run: | install -m 600 -D /dev/null ~/.ssh/id_rsa @@ -59,5 +54,30 @@ jobs: User build IdentityFile ~/.ssh/id_rsa EOL + + - name: Build Hugo Website + id: build + run: | + hugo + - name: Deploy run: ./deploy.sh + + - name: Install Onion SSH Key + run: | + install -m 600 -D /dev/null ~/.ssh/id_onion + echo "${{ secrets.ONION_BUILD_SSH_KEY }}" > ~/.ssh/id_onion + cat <> ~/.ssh/config + Host Rozek-Nimbus-Onion + Hostname 158.69.216.99 + User build + IdentityFile ~/.ssh/id_onion + EOL + + - name: Build Onion Website + run: | + hugo --baseURL "http://brozek63j22jry6gof2vszo27vh2ed327bqismqu3somrqu622z73eid.onion/" --destination "public-onion" + + - name: Deploy onion website + run: | + rsync -Pazc --exclude=*.bak --delete public-onion/ build@Rozek-Nimbus-Onion:brandonrozek-onion/ diff --git a/layouts/index.html b/layouts/index.html index 4091ed1..54dff15 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ {{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }} {{ $profile_width := 250 }} {{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }} - Photo of {{ .Site.Params.Author }} + Photo of {{ .Site.Params.Author }} diff --git a/themes/pulp b/themes/pulp index 39126b0..a49100e 160000 --- a/themes/pulp +++ b/themes/pulp @@ -1 +1 @@ -Subproject commit 39126b0d064055d0e5a4490e9588494969244634 +Subproject commit a49100eee9c37817c8ed34be775b1dadc504b756