Actualiser .gitea/workflows/staging.yaml
All checks were successful
Staging / build_and_deploy_staging (push) Successful in 9s

This commit is contained in:
Mathieu Broillet 2023-07-04 12:31:09 +00:00
parent f349f21ca4
commit 9f60ce6fb7

View File

@ -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
@ -36,17 +36,3 @@ jobs:
privateKey : ${{ secrets.SSH_KEY }} privateKey : ${{ secrets.SSH_KEY }}
rmRemote: true rmRemote: true
dotfiles: 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