Skip to content

Commit f0a4626

Browse files
authored
Move npm run build to gh runner (#179)
1 parent f544d48 commit f0a4626

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ jobs:
4848
run: npx --yes package-lock-utd@1.1.0
4949
- name: Install app dependencies
5050
run: npm ci
51+
- name: Build application
52+
run: npm run build
5153
- name: Run deploy shell script
5254
run: cd devops && bash ./deploy.sh -p -c

devops/playbook.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,11 @@
9191
args:
9292
chdir: /home/ubuntu/regional-rail-explorer
9393

94-
- name: build application
95-
shell: npm run build
96-
args:
97-
chdir: /home/ubuntu/regional-rail-explorer
94+
- name: sync built .next directory from runner
95+
synchronize:
96+
src: "{{ playbook_dir }}/../.next/"
97+
dest: /home/ubuntu/regional-rail-explorer/.next/
98+
delete: yes
9899

99100
- name: Make sure a service unit is running and enabled
100101
become: yes

0 commit comments

Comments
 (0)