Skip to content

Commit bf725c9

Browse files
init workflow
1 parent ef98dc7 commit bf725c9

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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"

resources.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)