commit 958488cc0a4334a10ec313077de78f4478f48dc8
parent fe8404d34ada266892f4b856fb6c42ca3a784684
Author: David Eisinger <[email protected]>
Date: Wed, 7 Feb 2024 11:09:52 -0500
build all branches (but only deploy main)
Diffstat:
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
@@ -9,13 +9,13 @@ jobs:
with:
fetch-depth: 0
- - name: Setup Hugo
+ - name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.122.0"
extended: true
- - name: Set up ruby 3.2.1
+ - name: Set up Ruby 3.2.1
uses: ruby/setup-ruby@v1
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/bin/dither/Gemfile
@@ -35,6 +35,13 @@ jobs:
KEY: ${{ github.workspace }}/secret.key
run: cd bin/dither && bundle exec ruby dither.rb >> dither.log 2>&1 &
+ - name: Generate static site
+ env:
+ DITHER_SERVER: http://localhost:4567
+ run: |
+ source bin/get-last-commit.sh
+ hugo
+
- name: Install SSH deploy key
if: ${{ github.ref == 'refs/heads/main' }}
env:
@@ -51,5 +58,11 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
env:
SERVER_IP: ${{ secrets.SERVER_IP }}
- DITHER_SERVER: http://localhost:4567
- run: bin/deploy
+ run: |
+ rsync \
+ -v \
+ -r \
+ --delete \
+ -e "ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa" \
+ public/* \
+ www-data@$SERVER_IP:/var/www/davideisinger.com
diff --git a/content/journal/encrypt-and-dither-photos-in-hugo/index.md b/content/journal/encrypt-and-dither-photos-in-hugo/index.md
@@ -192,7 +192,7 @@ This site uses GitHub Actions to deploy on pushes to the `main` branch, and we n
[Here's the deploy workflow for this site][18] for reference.
-[18]: https://github.com/dce/davideisinger.com/blob/7285c58add56e2ac6b5f7bf62914f0615ac23c9f/.github/workflows/deploy.yml
+[18]: https://github.com/dce/davideisinger.com/blob/901c8baad1f60a65910b387b20c8bcd0ea402c0b/.github/workflows/deploy.yml
***