Skip to content

Commit 3deb685

Browse files
authored
Merge pull request #85 from ConducereIT/revert-84-cristi3
Revert "new main.waml"
2 parents 2cd2220 + 9440b01 commit 3deb685

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: genezio workflow
2-
32
on:
43
push:
54
branches:
@@ -8,31 +7,17 @@ on:
87
jobs:
98
deploy-backend:
109
runs-on: ubuntu-latest
11-
1210
steps:
1311
- uses: actions/checkout@v4
14-
15-
# ✅ Use Node 18 (compatible with Genezio)
1612
- uses: actions/setup-node@v4
13+
- uses: Genez-io/genezio-github-action@v2
1714
with:
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
15+
token: ${{ secrets.GENEZIO_TOKEN }}
16+
- name: install pg
2917
working-directory: ./server
3018
run: npm install pg
31-
32-
# ✅ Deploy using your token from GitHub Secrets
3319
- name: Deploy backend
3420
working-directory: ./server
3521
run: genezio deploy
3622
env:
37-
GENEZIO_TOKEN: ${{ secrets.GENEZIO_TOKEN }}
38-
CI: false
23+
CI: false

0 commit comments

Comments
 (0)