Actualiser .gitea/workflows/build.yaml
Some checks failed
Production / deploy (push) Failing after 4s
Some checks failed
Production / deploy (push) Failing after 4s
This commit is contained in:
parent
aea3509f77
commit
499e8b6888
@ -27,39 +27,27 @@ jobs:
|
||||
- name: Build staging
|
||||
run: hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/
|
||||
|
||||
- name: debug
|
||||
run: |
|
||||
ls -al .
|
||||
ls -al public/
|
||||
|
||||
- name: Copy (scp) staging build to blog server
|
||||
uses: https://github.com/appleboy/scp-action@v0.1.4
|
||||
uses: garygrossgarten/github-action-scp@release
|
||||
with:
|
||||
local: 'public'
|
||||
remote: /var/www/html/staging
|
||||
host: ${{ secrets.SSH_HOSTNAME }}
|
||||
username: root
|
||||
port: 22
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: 'public/*'
|
||||
target: '/var/www/html/staging'
|
||||
rm: true
|
||||
strip_components: 1
|
||||
username: 'root'
|
||||
privateKey : ${{ secrets.SSH_KEY }}
|
||||
rmRemote: true
|
||||
dotfiles: true
|
||||
|
||||
- name: Build production
|
||||
run: hugo --gc --minify -b https://blog.broillet.ch/
|
||||
|
||||
- name: debug
|
||||
run: |
|
||||
ls -al .
|
||||
ls -al public/
|
||||
|
||||
- name: Copy (scp) prod build to blog server
|
||||
uses: https://github.com/appleboy/scp-action@v0.1.4
|
||||
uses: garygrossgarten/github-action-scp@release
|
||||
with:
|
||||
local: 'public'
|
||||
remote: /var/www/html/prod
|
||||
host: ${{ secrets.SSH_HOSTNAME }}
|
||||
username: root
|
||||
port: 22
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: 'public/*'
|
||||
target: '/var/www/html/prod'
|
||||
rm: true
|
||||
strip_components: 1
|
||||
username: 'root'
|
||||
privateKey : ${{ secrets.SSH_KEY }}
|
||||
rmRemote: true
|
||||
dotfiles: true
|
Loading…
Reference in New Issue
Block a user