Skip to content

Commit 53da3d0

Browse files
author
Aldo Caneo
committed
fix deploy
1 parent ec97b02 commit 53da3d0

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,39 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Push to server
12+
- uses: actions/checkout@v4
13+
name: Checkout código
14+
15+
- uses: actions/setup-node@v4
16+
name: Setup Node.js 22.x
17+
with:
18+
node-version: '22'
19+
cache: 'npm'
20+
21+
- name: Creacion variables de entorno
22+
run: |
23+
touch .env.local
24+
echo "NEXT_PUBLIC_FEATURE_REGISTRATION=${{ vars.NEXT_PUBLIC_FEATURE_REGISTRATION }}" >> .env.local
25+
echo "NEXT_PUBLIC_FEATURE_SPONSORS=${{ vars.NEXT_PUBLIC_FEATURE_SPONSORS }}" >> .env.local
26+
echo "NEXT_PUBLIC_FEATURE_SPONSOR_FORM=${{ vars.NEXT_PUBLIC_FEATURE_SPONSOR_FORM }}" >> .env.local
27+
echo "NEXT_PUBLIC_SITE_URL=${{ vars.NEXT_PUBLIC_SITE_URL }}" >> .env.local
28+
29+
- name: Instalar dependencias y build
30+
run: |
31+
npm ci
32+
npm run build
33+
34+
- name: Copia archivos hacia servidor
35+
uses: appleboy/scp-action@v1
36+
with:
37+
host: ${{ secrets.PYDAY_SERVER }}
38+
username: ${{ secrets.PYDAY_USER }}
39+
password: ${{ secrets.PYDAY_PASS }}
40+
port: ${{ secrets.PYDAY_PORT }}
41+
source: ".out"
42+
target: "pydaydotcl"
43+
44+
- name: Copia out a public
1345
uses: appleboy/ssh-action@v1
1446
with:
1547
host: ${{ secrets.PYDAY_SERVER }}
@@ -18,5 +50,4 @@ jobs:
1850
port: ${{ secrets.PYDAY_PORT }}
1951
script: |
2052
cd pydaydotcl
21-
ls -l
2253
sh deploy.sh

0 commit comments

Comments
 (0)