Skip to content

Commit 809eb04

Browse files
authored
Update GitHub Actions workflow for test deployment
Signed-off-by: Milana Cap <milanazzap@gmail.com>
1 parent a3a3052 commit 809eb04

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/test-deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ on:
77
# Review gh actions docs if you want to further define triggers, paths, etc
88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
99

10+
# Allow running this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
1013
defaults:
1114
run:
1215
shell: bash
1316
working-directory: ./docs
1417

18+
permissions:
19+
contents: write
20+
1521
jobs:
1622
test-deploy:
1723
name: Test deployment
@@ -20,17 +26,15 @@ jobs:
2026
- uses: actions/checkout@v4
2127
with:
2228
fetch-depth: 0
29+
2330
- uses: actions/setup-node@v4
2431
with:
2532
node-version: 20
2633
cache: npm
27-
- name: Debug paths
28-
run: |
29-
pwd
30-
ls -la
31-
ls -la ./docs
32-
ls -la ./docs/package-lock.json
34+
cache-dependency-path: docs/package-lock.json
35+
3336
- name: Install dependencies
3437
run: npm ci
35-
- name: Test build website
38+
39+
- name: Build website
3640
run: npm run build

0 commit comments

Comments
 (0)