File tree Expand file tree Collapse file tree 2 files changed +38
-18
lines changed
Expand file tree Collapse file tree 2 files changed +38
-18
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 22'
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Deploy
26+ env :
27+ HDB_TARGET : ${{ secrets.HDB_TARGET }}
28+ HDB_USERNAME : ${{ secrets.HDB_USERNAME }}
29+ HDB_PASSWORD : ${{ secrets.HDB_PASSWORD }}
30+ run : |
31+ REPO_URL="https://github.com/${{ github.repository }}#${{ github.sha }}"
32+ echo "Deploying from: $REPO_URL"
33+ harperdb deploy \
34+ target="$HDB_TARGET" \
35+ username="$HDB_USERNAME" \
36+ password="$HDB_PASSWORD" \
37+ project=nextjs-example \
38+ package="$REPO_URL"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments