this is despairing...
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s

This commit is contained in:
2025-06-13 14:27:28 +02:00
parent 0ecbbdfc5a
commit 575ccc2683
3 changed files with 5 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ name: Build and Deploy
on:
push:
branches: [ master ]
branches: [master]
jobs:
build-and-deploy:
@@ -17,11 +17,11 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
hugo-version: "latest"
extended: true
- name: Build
run: hugo --minify
run: hugo --minify --buildFuture
- name: Install rsync
run: sudo apt-get update && sudo apt-get install -y rsync
@@ -45,4 +45,4 @@ jobs:
- name: Restart Docker container
run: |
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} \
"cd ${{ secrets.DEPLOY_PATH }} && sudo docker compose -f docker-compose.prod.yml up -d --build"
"cd ${{ secrets.DEPLOY_PATH }} && sudo docker compose -f docker-compose.prod.yml up -d --build"