diff --git a/.gitea/workflows/production.yml b/.gitea/workflows/production.yml index 68910ce..0b9696f 100644 --- a/.gitea/workflows/production.yml +++ b/.gitea/workflows/production.yml @@ -12,8 +12,16 @@ jobs: image: node:22-bullseye steps: - uses: actions/checkout@v4 - with: - submodules: true + - name: install ssh key + env: + run: | + install -m 600 -D /dev/null theme-deploy-key + echo "${{ secrets.THEME_DEPLOY_KEY }}" | base64 --decode > theme-deploy-key + + - name: init submodules + env: + GIT_SSH_COMMAND: ssh -i theme-deploy-key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no + run: git submodule update --init - name: Setup Hugo uses: peaceiris/actions-hugo@v3