Start dither server in CI
This commit is contained in:
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
@@ -9,12 +9,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: "0.109.0"
|
hugo-version: "0.122.0"
|
||||||
extended: true
|
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
|
- name: Install SSH deploy key
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user