diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index d8605ac..82e246c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 3f93e15..44ccf2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .hugo_build.lock -/venv/ \ No newline at end of file +/venv/ +/public/ \ No newline at end of file diff --git a/deploy b/deploy new file mode 100755 index 0000000..db0dbd7 --- /dev/null +++ b/deploy @@ -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 \ No newline at end of file