Skip to content

Commit 4ad9b65

Browse files
committed
wip
1 parent 258443f commit 4ad9b65

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/deploy-gcp.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

0 commit comments

Comments
 (0)