Compare commits
No commits in common. "39283f63b6e887cdc4f39272a01861ed28e376a6" and "c2f72e6cce6b0972a209240c11b9d3980c93154b" have entirely different histories.
39283f63b6
...
c2f72e6cce
|
@ -25,12 +25,9 @@ jobs:
|
|||
- name: Build website
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to Server
|
||||
uses: https://github.com/easingthemes/ssh-deploy@main
|
||||
- name: Deploy website
|
||||
run: hugo deploy
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ARGS: "-rlgoDzvc -i --delete"
|
||||
SOURCE: "public/"
|
||||
REMOTE_HOST: digitalstudium.com
|
||||
REMOTE_USER: root
|
||||
TARGET: /srv/digitalstudium.com
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
|
||||
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
.hugo_build.lock
|
||||
/venv/
|
||||
/public/
|
||||
/venv/
|
8
deploy
8
deploy
|
@ -1,8 +0,0 @@
|
|||
#!/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