Skip to content

Commit 0e85c2d

Browse files
committed
Fix deploy: stable actions, timeout, rsync dir check
1 parent 701a394 commit 0e85c2d

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,28 @@ jobs:
1111
environment: .env
1212
steps:
1313
- name: Checkout main branch
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
15+
1516
- name: Setup Node.js
16-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
1718
with:
18-
node-version: '16.x'
19+
node-version: '16'
20+
21+
- name: Clean npm cache
22+
run: npm cache clean --force
23+
1924
- name: Install dependencies
20-
run: npm ci
25+
run: npm ci --verbose
26+
timeout-minutes: 5
27+
2128
- name: Create env file
2229
run: |
2330
touch .env
2431
echo NOTION_TOKEN=${{ secrets.NOTION_TOKEN }} >> .env
2532
cat .env
33+
34+
- name: Ensure target directory exists
35+
run: mkdir -p /var/www/orienting.sfpc.study/html/
36+
2637
- name: Copy Orienting Directory
2738
run: rsync -a --delete orienting.sfpc.study/ /var/www/orienting.sfpc.study/html/
28-

0 commit comments

Comments
 (0)