Skip to content

Commit 9b43a70

Browse files
Hristo313Hristo Hristov
andauthored
fix(react): update copy assets step (#1452)
Co-authored-by: Hristo Hristov <[email protected]>
1 parent 9fc6fe0 commit 9b43a70

File tree

1 file changed

+1
-1
lines changed
  • packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows

1 file changed

+1
-1
lines changed

packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
find ./dist/assets -type f -name "*.js" -exec sed -i 's|src/assets|${{ github.event.repository.name }}/assets|g' {} +;
4040
find ./dist/assets -type f -name "*.js" -exec sed -i 's|/static-data/|/${{ github.event.repository.name }}/static-data/|g' {} +
4141
- name: Copy Resources to dist
42-
run: mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/
42+
run: if [ -d "./src/assets" ]; then mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/; fi
4343
- name: SPA routing handling
4444
run: cp ./dist/index.html ./dist/404.html
4545
- name: Upload build artifact to GitHub Pages

0 commit comments

Comments
 (0)