changing gitea action to maybe fix corrupted images
This commit is contained in:
parent
f7c3a0d9a0
commit
e85df705df
1 changed files with 10 additions and 9 deletions
|
@ -22,13 +22,14 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Deploy to Staging server
|
- name: Install SSH Key
|
||||||
uses: easingthemes/ssh-deploy@main
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ARGS: "-rlgoDzvc -i"
|
known_hosts: 'placeholder' # to make it work
|
||||||
SOURCE: "public/"
|
|
||||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
- name: Adding Known Hosts
|
||||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
run: ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts
|
||||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
|
||||||
EXCLUDE: "/dist/, /node_modules/"
|
- name: Deploy with rsync
|
||||||
|
run: rsync -avz --delete ./public/ ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.REMOTE_TARGET }}
|
Loading…
Reference in a new issue