Change deploy method
This commit is contained in:
parent
c2f72e6cce
commit
7e4b06a217
|
@ -22,12 +22,5 @@ jobs:
|
|||
hugo-version: "0.110.0"
|
||||
extended: true
|
||||
|
||||
- name: Build website
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy website
|
||||
run: hugo deploy
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
|
||||
|
||||
run: ./deploy
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
.hugo_build.lock
|
||||
/venv/
|
||||
/public/
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
USER=root
|
||||
HOST=digitalstudium.com
|
||||
DIR=/srv/$HOST # the directory where your web site files should go
|
||||
|
||||
hugo --minify && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue