Skip to content

Commit

Permalink
try again.
Browse files Browse the repository at this point in the history
  • Loading branch information
credmond-git committed Oct 5, 2024
1 parent eca5ebf commit 689bf6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

defaults:
run:
shell: bash
working-directory: ./docs/gestalt-static

jobs:
build:
Expand All @@ -17,20 +22,19 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Install dependencies
run: npm ci
working-directory: ./docs/gestalt-static
- name: Build website
run: npm run build
working-directory: ./docs/gestalt-static

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/gestalt-static/build
path: build

deploy:
name: Deploy to GitHub Pages
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

defaults:
run:
shell: bash
working-directory: ./docs/gestalt-static

jobs:
test-deploy:
name: Test deployment
Expand All @@ -17,12 +22,11 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Install dependencies
run: npm ci
working-directory: ./docs/gestalt-static
- name: Test build website
run: npm run build
working-directory: ./docs/gestalt-static

0 comments on commit 689bf6c

Please sign in to comment.