From 425f7dbee66483cba6a45d18e70827cc19137f08 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Thu, 1 Feb 2024 23:43:50 -0500 Subject: [PATCH] Start dither server in CI --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f3b601c..d9b46c2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,12 +9,32 @@ jobs: with: fetch-depth: 0 - - name: Setup hugo + - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: "0.109.0" + hugo-version: "0.122.0" extended: true + - name: Set up ruby 3.2.1 + uses: ruby/setup-ruby@v1 + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/bin/dither/Gemfile + with: + ruby-version: 3.2.1 + bundler-cache: true + + - name: Add decryption key + env: + KEY: ${{ secrets.IMAGE_DECRYPTION_KEY }} + run: | + echo "$KEY" > ${{ github.workspace }}/secret.key + + - name: Start dither server + env: + ROOT: ${{ github.workspace }}/content + KEY: ${{ github.workspace }}/secret.key + run: cd bin/dither && bundle exec ruby dither.rb & + - name: Install SSH deploy key if: ${{ github.ref == 'refs/heads/main' }} env: