Skip to content

Commit

Permalink
build: clean directory before adding new build file
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Sep 5, 2023
1 parent 1df130f commit e7215f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Create build directory if it doesn't exist
run: mkdir -p public

- name: Clear build directory
run: rm -rf public/*

- name: Move build files to /public
run: |
mv frontend/build/* public/
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ db.sqlite3
# Ignore development configuration file (if using environment variables)
.env

static/
/static/

0 comments on commit e7215f3

Please sign in to comment.