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:
|
||||
push:
|
||||
@ -6,7 +6,7 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
build_and_deploy_staging:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -36,17 +36,3 @@ jobs:
|
||||
privateKey : ${{ secrets.SSH_KEY }}
|
||||
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
|
Loading…
Reference in New Issue
Block a user