Skip to content

Commit

Permalink
Fix CI resource copying/referencing (aftermath of ol upgrade)
Browse files Browse the repository at this point in the history
The current CI step is broken as the search and replace action in
a5f3348#diff-06f983058dae83465098c90797cf428d495b8b4e085d07208e61be17203873c0R105-R106
has made the `sed` expression invalid.

This commit changes the CI step so that the files `dist/ol.js` and
`dist/ol.js.map` and `ol.css` should be reachable from `master/resources`
and the references in the example HTML-files should correctly point to these
files.
  • Loading branch information
marcjansen committed Dec 16, 2022
1 parent 9a3a5f1 commit e794c13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/on-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ jobs:
cp -r resources master/
cp -r src master/
cp -r classic master/
cp -r node_modules/ol master/resources/
find master/examples -type f -name "*.html" -exec sed -i 's|../../node_modules/ol|g' {} +
cp -r node_modules/ol/dist master/resources/
cp node_modules/ol/ol.css master/resources/
find master/examples -type f -name "*.html" -exec sed -i 's|../../node_modules/ol|../../resources/|g' {} +
cp /tmp/sencha-workspace/packages/geoext3/build/*js master/
npm run generate:docs:master
npm run generate:docs-w-ext:master
Expand Down

0 comments on commit e794c13

Please sign in to comment.