feat(workflow): deploy directly to server
This commit is contained in:
parent
619d90faf8
commit
202040173c
1 changed files with 10 additions and 7 deletions
|
@ -23,10 +23,13 @@ jobs:
|
||||||
bun install
|
bun install
|
||||||
bun run build
|
bun run build
|
||||||
|
|
||||||
- name: Commit dist
|
- name: Deploy to server
|
||||||
run: |
|
uses: appleboy/scp-action@master
|
||||||
git config user.name "gitea-actions[bot]"
|
with:
|
||||||
git config user.email "gitea-actions[bot]@git.z0x.ca"
|
host: ${{ secrets.HOST }}
|
||||||
git add -f dist
|
username: ${{ secrets.USERNAME }}
|
||||||
git commit -m "ci(dist): build dist"
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
git push
|
source: "dist/*"
|
||||||
|
target: ${{ secrets.TARGET }}
|
||||||
|
strip_components: 1
|
||||||
|
overwrite: true
|
Loading…
Add table
Reference in a new issue