feat(workflow): deploy directly to server

This commit is contained in:
z0x 2025-01-25 15:56:38 -05:00
parent 619d90faf8
commit 202040173c

View file

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