1
0
Fork 0

Compare commits

..

No commits in common. "39283f63b6e887cdc4f39272a01861ed28e376a6" and "c2f72e6cce6b0972a209240c11b9d3980c93154b" have entirely different histories.

3 changed files with 6 additions and 18 deletions

View File

@ -25,12 +25,9 @@ jobs:
- name: Build website - name: Build website
run: hugo --minify run: hugo --minify
- name: Deploy to Server - name: Deploy website
uses: https://github.com/easingthemes/ssh-deploy@main run: hugo deploy
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ARGS: "-rlgoDzvc -i --delete" AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
SOURCE: "public/"
REMOTE_HOST: digitalstudium.com
REMOTE_USER: root
TARGET: /srv/digitalstudium.com

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
.hugo_build.lock .hugo_build.lock
/venv/ /venv/
/public/

8
deploy
View File

@ -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