Skip to content

Commit 2cd2220

Browse files
authored
Merge pull request #84 from ConducereIT/cristi3
new main.waml
2 parents 3d8622a + baf629b commit 2cd2220

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: genezio workflow
2+
23
on:
34
push:
45
branches:
@@ -7,17 +8,31 @@ on:
78
jobs:
89
deploy-backend:
910
runs-on: ubuntu-latest
11+
1012
steps:
1113
- uses: actions/checkout@v4
14+
15+
# ✅ Use Node 18 (compatible with Genezio)
1216
- uses: actions/setup-node@v4
13-
- uses: Genez-io/genezio-github-action@v2
1417
with:
15-
token: ${{ secrets.GENEZIO_TOKEN }}
16-
- name: install pg
18+
node-version: '18'
19+
20+
# ✅ Install Genezio manually (stable version)
21+
- name: Install Genezio CLI
22+
run: npm install -g genezio@2.1.8
23+
24+
- name: Check Genezio version
25+
run: genezio --version
26+
27+
# ✅ Install backend dependencies
28+
- name: Install pg
1729
working-directory: ./server
1830
run: npm install pg
31+
32+
# ✅ Deploy using your token from GitHub Secrets
1933
- name: Deploy backend
2034
working-directory: ./server
2135
run: genezio deploy
2236
env:
23-
CI: false
37+
GENEZIO_TOKEN: ${{ secrets.GENEZIO_TOKEN }}
38+
CI: false

0 commit comments

Comments
 (0)