File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+ # on:
3+ # push:
4+ # branches:
5+ # - main
6+ on :
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+
10+ concurrency :
11+ group : prod-deploy
12+ cancel-in-progress : true
13+
14+ jobs :
15+ deploy :
16+ runs-on : ubuntu-latest
17+ environment : production
18+
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v3
22+
23+ - name : Setup PHP
24+ uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : ' 8.3'
27+ coverage : none
28+
29+ - name : Install dependencies
30+ uses : ramsey/composer-install@v2
31+
32+ - name : Install Node.js
33+ uses : actions/setup-node@v3
34+ with :
35+ node-version : ' 18.13.0'
36+ cache : ' npm'
37+
38+ - name : Install npm dependencies
39+ run : npm ci
40+
41+ - name : Build assets
42+ run : npm run production
43+
44+ - name : Zip up the application
45+ run : zip -r application.zip . -x "*.git*" -x "*.github*"
46+
47+ - name : Upload Application Artifact
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : application
51+ path : application.zip
You can’t perform that action at this time.
0 commit comments