Actualiser .gitea/workflows/staging.yaml
All checks were successful
Staging / build_and_deploy_staging (push) Successful in 9s
All checks were successful
Staging / build_and_deploy_staging (push) Successful in 9s
This commit is contained in:
parent
f349f21ca4
commit
9f60ce6fb7
@ -1,4 +1,4 @@
|
|||||||
name: Production
|
name: Staging
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build_and_deploy_staging:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -35,18 +35,4 @@ jobs:
|
|||||||
username: 'root'
|
username: 'root'
|
||||||
privateKey : ${{ secrets.SSH_KEY }}
|
privateKey : ${{ secrets.SSH_KEY }}
|
||||||
rmRemote: true
|
rmRemote: true
|
||||||
dotfiles: true
|
|
||||||
|
|
||||||
- name: Build production
|
|
||||||
run: hugo --gc --minify -b https://blog.broillet.ch/
|
|
||||||
|
|
||||||
- name: Copy (scp) prod build to blog server
|
|
||||||
uses: https://github.com/garygrossgarten/github-action-scp@release
|
|
||||||
with:
|
|
||||||
local: 'public'
|
|
||||||
remote: /var/www/html/prod
|
|
||||||
host: ${{ secrets.SSH_HOSTNAME }}
|
|
||||||
username: 'root'
|
|
||||||
privateKey : ${{ secrets.SSH_KEY }}
|
|
||||||
rmRemote: true
|
|
||||||
dotfiles: true
|
dotfiles: true
|
Loading…
Reference in New Issue
Block a user