changing gitea action to maybe fix corrupted images

This commit is contained in:
Sam Tate 2024-06-29 14:06:54 +01:00
parent f7c3a0d9a0
commit e85df705df

View file

@ -22,13 +22,14 @@ jobs:
- name: Build
run: hugo --minify
- name: Deploy to Staging server
uses: easingthemes/ssh-deploy@main
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/dist/, /node_modules/"
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'placeholder' # to make it work
- name: Adding Known Hosts
run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz --delete ./public/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}