Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
emeric-martineau committed Sep 8, 2023
1 parent fb9c434 commit 0c9ca15
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- master

defaults:
run:
working-directory: 3d-printer-for-hobbies-app

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -21,14 +17,21 @@ jobs:
with:
node-version: 18

- name: Install dependencies
- name: Install dependencies for generate data
run: npm ci
working-directory: generate-data

- name: Generate data
run: npm run generate
working-directory: generate-data

- name: Run tests
run: npm run test:headless
- name: Install dependencies for web site
run: npm ci
working-directory: 3d-printer-for-hobbies-app

- name: Build
run: npm run build:prod
run: npm run build -- --base-href=/3d-printers-for-hobbies/
working-directory: 3d-printer-for-hobbies-app

- name: Deploy
if: success()
Expand Down

0 comments on commit 0c9ca15

Please sign in to comment.