File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed
Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 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 }}
1850 port : ${{ secrets.PYDAY_PORT }}
1951 script : |
2052 cd pydaydotcl
21- ls -l
2253 sh deploy.sh
You can’t perform that action at this time.
0 commit comments