Actualiser .gitea/workflows/build.yaml
Some checks failed
Production / deploy (push) Failing after 9s
Some checks failed
Production / deploy (push) Failing after 9s
This commit is contained in:
parent
80d66335f6
commit
aea3509f77
@ -33,16 +33,16 @@ jobs:
|
|||||||
ls -al public/
|
ls -al public/
|
||||||
|
|
||||||
- name: Copy (scp) staging build to blog server
|
- name: Copy (scp) staging build to blog server
|
||||||
uses: https://github.com/nicklasfrahm/scp-action@main
|
uses: https://github.com/appleboy/scp-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOSTNAME }}
|
host: ${{ secrets.SSH_HOSTNAME }}
|
||||||
username: root
|
username: root
|
||||||
port: 22
|
port: 22
|
||||||
direction: upload
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
insecure_ignore_fingerprint: true
|
|
||||||
source: 'public/*'
|
source: 'public/*'
|
||||||
target: '/var/www/html/staging'
|
target: '/var/www/html/staging'
|
||||||
|
rm: true
|
||||||
|
strip_components: 1
|
||||||
|
|
||||||
- name: Build production
|
- name: Build production
|
||||||
run: hugo --gc --minify -b https://blog.broillet.ch/
|
run: hugo --gc --minify -b https://blog.broillet.ch/
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
ls -al .
|
ls -al .
|
||||||
ls -al public/
|
ls -al public/
|
||||||
|
|
||||||
- name: Copy (scp) staging build to blog server
|
- name: Copy (scp) prod build to blog server
|
||||||
uses: https://github.com/appleboy/scp-action@v0.1.4
|
uses: https://github.com/appleboy/scp-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOSTNAME }}
|
host: ${{ secrets.SSH_HOSTNAME }}
|
||||||
|
Loading…
Reference in New Issue
Block a user