File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - main
88
99jobs :
10- build :
11- runs-on : ubuntu-22.04
10+ test :
11+ runs-on : ubuntu-latest
1212
1313 strategy :
1414 matrix :
4949 commit_message : " ci(frontend): update test results"
5050 file_pattern : " frontend/src/lib/prerender-errors.json frontend/test-results/*.json"
5151
52+ pages :
53+ needs : test
54+ runs-on : ubuntu-latest
55+
56+ strategy :
57+ matrix :
58+ node-version : [20.x]
59+
60+ steps :
5261 - name : Build
5362 run : |
5463 npm run frontend:build
5867 with :
5968 publish_dir : ./frontend/build
6069 github_token : ${{ secrets.GITHUB_TOKEN }}
70+
71+ prod :
72+ needs : test
73+ runs-on : ubuntu-latest
74+
75+ strategy :
76+ matrix :
77+ node-version : [20.x]
78+
79+ steps :
80+ - name : Update .env file
81+ run : |
82+ rm -f ./frontend/.env && touch ./frontend/.env
83+ echo DEBUG=false >> ./frontend/.env
84+ echo NODE_ENV=production >> ./frontend/.env
85+
86+ - name : Build
87+ run : |
88+ npm run frontend:build
89+
90+ - name : Deploy to production via SSH
91+ uses : easingthemes/ssh-deploy@v5.1.1
92+ with :
93+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
94+ SOURCE : ./frontend/build
95+ REMOTE_HOST : ${{ secrets.REMOTE_HOST }}
96+ REMOTE_USER : ${{ secrets.REMOTE_USER }}
97+ TARGET : ${{ secrets.REMOTE_TARGET }}
You can’t perform that action at this time.
0 commit comments