Skip to content

Commit 4d4376f

Browse files
authored
Merge pull request #42 from UMC-7th-CAU-NodeJS/feature/add-deploy-pipeline
Update deploy-main.yml
2 parents 1c92cd2 + 66fb772 commit 4d4376f

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/deploy-main.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16-
- name: Check prisma has changes
17-
uses: dorny/paths-filter@v3
18-
id: paths-filter
19-
with:
20-
filters: |
21-
prisma: ["prisma/**"]
22-
2316
- name: Configure SSH
2417
run: |
2518
mkdir -p ~/.ssh
@@ -46,13 +39,7 @@ jobs:
4639
4740
- name: Install dependencies
4841
run: |
49-
ssh playground-umc-7th 'cd /opt/app; npm install'
50-
ssh playground-umc-7th 'cd /opt/app; npm exec prisma generate'
51-
52-
- name: Apply prisma migrations
53-
if: steps.paths-filter.outputs.prisma == 'true'
54-
run: |
55-
ssh playground-umc-7th 'cd /opt/app; npm exec prisma migrate deploy'
42+
ssh playground-umc-7th 'npm install --prefix /opt/app/'
5643
5744
- name: Copy systemd service file
5845
run: |
@@ -63,7 +50,7 @@ jobs:
6350
6451
[Service]
6552
User=${USER}
66-
ExecStart=/usr/bin/npm run start --prefix /opt/app/
53+
ExecStart=/usr/bin/npm run dev --prefix /opt/app/
6754
Restart=always
6855
6956
[Install]

0 commit comments

Comments
 (0)