Skip to content

Commit

Permalink
build: create build directory if dne
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Sep 5, 2023
1 parent d55cde8 commit 8637bd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Build React Project and Commit
on:
push:
branches:
- main # or your default branch name
- master
paths:
- "frontend/**"
workflow_dispatch:

jobs:
build-and-commit:
Expand Down Expand Up @@ -48,6 +47,9 @@ jobs:
cd frontend
yarn build
- name: Create build directory if it doesn't exist
run: mkdir -p build

- name: Move build files to /build
run: |
mv frontend/build/* build/
Expand Down

0 comments on commit 8637bd4

Please sign in to comment.