From 38160019566630664290c01a8af0ef2d090c5634 Mon Sep 17 00:00:00 2001 From: z0x Date: Sat, 25 Jan 2025 15:58:06 -0500 Subject: [PATCH] feat(workflow): deploy directly to server --- .gitea/workflows/build-dist.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-dist.yaml b/.gitea/workflows/build-dist.yaml index b7dbded..b75f62d 100644 --- a/.gitea/workflows/build-dist.yaml +++ b/.gitea/workflows/build-dist.yaml @@ -23,10 +23,13 @@ jobs: bun install bun run build - - name: Commit dist - run: | - git config user.name "gitea-actions[bot]" - git config user.email "gitea-actions[bot]@git.z0x.ca" - git add -f dist - git commit -m "ci(dist): build dist" - git push + - name: Deploy to server + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + source: "dist/*" + target: ${{ secrets.TARGET }} + strip_components: 1 + overwrite: true