File tree Expand file tree Collapse file tree 3 files changed +43
-12
lines changed
Expand file tree Collapse file tree 3 files changed +43
-12
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 deploy :
13- runs-on : ubuntu-latest
13+ runs-on : ubuntu-22.04
1414
1515 steps :
1616 - name : Check out the repository
@@ -26,14 +26,11 @@ jobs:
2626 id : get_branch
2727 run : echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
2828
29- - name : Copy files to the server via SCP
30- run : |
31- echo "Deploying to /var/www/html/dev/${{ env.BRANCH_NAME }}/"
32- scp -r -o StrictHostKeyChecking=no ./build/* ${{ secrets.NEUROJ_SERVER_USER }}@${{ secrets.NEUROJ_SERVER }}:/var/www/html/dev/${{ env.BRANCH_NAME }}/
33-
34- - name : Restart Server (Only in the deployed folder)
35- run : |
36- echo "Restarting services in /var/www/html/dev/${{ env.BRANCH_NAME }}/"
37- ssh -o StrictHostKeyChecking=no ${{ secrets.NEUROJ_SERVER_USER }}@${{ secrets.NEUROJ_SERVER }} << EOF
38- cd /var/www/html/dev/${{ env.BRANCH_NAME }}/ && pm2 restart all || echo "No PM2 processes found in this directory"
39- EOF
29+ - name : Copy package to server
30+ 31+ with :
32+ server : ${{ secrets.NEUROJ_SERVER }}
33+ username : ${{ secrets.NEUROJ_SERVER_USER }}
34+ ssh_private_key : ${{ secrets.NEUROJ_SERVER_SSH_KEY }}
35+ local_path : " ./build/*"
36+ remote_path : " ${{ secrets.NEUROJ_CI_PATH }}/${{ env.BRANCH_NAME }}"
Original file line number Diff line number Diff line change 88jobs :
99 validate :
1010 runs-on : ubuntu-latest
11+ env :
12+ CI : false
1113
1214 steps :
1315 - name : Check out the repository
Original file line number Diff line number Diff line change 1+ yarn run v1.22.22
2+ $ craco build --debug
3+ Creating an optimized production build...
4+ Compiled with warnings.
5+
6+ Critical dependency: the request of a dependency is an expression
7+
8+ Search for the keywords to learn more about each warning.
9+ To ignore, add // eslint-disable-next-line to the line before.
10+
11+ File sizes after gzip:
12+
13+ 717.18 kB build/static/js/main.30f0cad2.js
14+
15+ The bundle size is significantly larger than recommended.
16+ Consider reducing it with code splitting: https://goo.gl/9VhYWB
17+ You can also analyze the project dependencies: https://goo.gl/LeUzfb
18+
19+ The project was built assuming it is hosted at /.
20+ You can control this with the homepage field in your package.json.
21+
22+ The build folder is ready to be deployed.
23+ You may serve it with a static server:
24+
25+ yarn global add serve
26+ serve -s build
27+
28+ Find out more about deployment here:
29+
30+ https://cra.link/deployment
31+
32+ Done in 15.95s.
You can’t perform that action at this time.
0 commit comments