commit 425f7dbee66483cba6a45d18e70827cc19137f08 parent 0a7b98406a4dd60600f6e232448a13847f3627dd Author: David Eisinger <[email protected]> Date: Thu, 1 Feb 2024 23:43:50 -0500 Start dither server in CI Diffstat:
| M | .github/workflows/deploy.yml | | | 24 | ++++++++++++++++++++++-- |
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git 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: