commit 96aa40047609bb3b72712221e65874a0c06801a9 parent 62f8f70dfa0f42ee5e60e18700236e67de99ca12 Author: Chris <chris@echoz.io> Date: Fri, 8 May 2026 14:51:28 +0200 chore: update deploy workflow Diffstat:
| M | .github/workflows/deploy.yaml | | | 13 | ++++++------- |
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml @@ -9,15 +9,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - - uses: jakejarvis/hugo-build-action@v0.105.0 - - shell: bash - run: | + - uses: cachix/install-nix-action@v31 + - run: nix build + - run: | set -e id_rsa=$(mktemp) chmod 600 $id_rsa echo "${{ secrets.SSH_KEY }}" > $id_rsa - rsync --delete -vre "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./public/ "${{ secrets.SSH_TARGET }}:${{ secrets.SSH_WEBROOT }}" - ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge -\ No newline at end of file + rsync --delete --chmod=D755,F644 -vrLe "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./result/ "${{ secrets.SSH_TARGET }}:${{ secrets.SSH_WEBROOT }}" + ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge