Skip to content

Commit 90c3d37

Browse files
committed
chore: update deployment workflow to include testing and secret management
1 parent 9654e0c commit 90c3d37

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
deploy:
9+
test_and_deploy:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup Bun
1616
uses: oven-sh/setup-bun@v1
@@ -20,15 +20,21 @@ jobs:
2020
- name: Install dependencies
2121
run: bun install
2222

23+
- name: Lint project
24+
run: bun run lint
25+
26+
- name: Run tests
27+
run: bun run test
28+
2329
- name: Build project
2430
run: bun run build
2531

2632
- name: Deploy to server
2733
uses: appleboy/scp-action@master
2834
with:
29-
host: 69.62.124.138
30-
username: yannvr
35+
host: ${{ secrets.SERVER_HOST }}
36+
username: ${{ secrets.SERVER_USERNAME }}
3137
key: ${{ secrets.SSH_PRIVATE_KEY }}
3238
source: "out/,public/,package.json"
33-
target: "~/hyperdrift/yieldmax"
39+
target: ${{ secrets.SERVER_TARGET_PATH }}
3440
strip_components: 0

0 commit comments

Comments
 (0)