Skip to content

Commit 51122e3

Browse files
committed
Attemp to fix pathing issue with cp
1 parent 06cdef7 commit 51122e3

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.github/workflows/cdn-deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
cp -r dist/* cdn/@semantic-ui/core/$VERSION/
4444
4545
# Copy and update core package.json template
46-
cp scripts/assets/templates/core-package.json.template cdn/@semantic-ui/core/$VERSION/package.json
46+
cp $GITHUB_WORKSPACE/scripts/assets/templates/core-package.json.template cdn/@semantic-ui/core/$VERSION/package.json
4747
sed -i "s/CORE_VERSION/$VERSION/g" cdn/@semantic-ui/core/$VERSION/package.json
4848
4949
# Process each package in packages directory
@@ -70,7 +70,7 @@ jobs:
7070
fi
7171
7272
# Create package.json for the CDN version using template
73-
cp ../../scripts/assets/templates/package.json.template ../cdn/@semantic-ui/$package_name/$pkg_version/package.json
73+
cp $GITHUB_WORKSPACE/scripts/assets/templates/package.json.template ../cdn/@semantic-ui/$package_name/$pkg_version/package.json
7474
7575
# Replace placeholders in the package.json
7676
sed -i "s/PACKAGE_NAME/$package_name/g" ../cdn/@semantic-ui/$package_name/$pkg_version/package.json
@@ -82,7 +82,7 @@ jobs:
8282
echo "Generating importmap for version $VERSION"
8383
8484
# Copy the importmap template
85-
cp scripts/assets/templates/importmap.json.template cdn/importmap-$VERSION.json
85+
cp $GITHUB_WORKSPACE/scripts/assets/templates/importmap.json.template cdn/importmap-$VERSION.json
8686
8787
# Replace version in core package import
8888
sed -i "s/VERSION/$VERSION/g" cdn/importmap-$VERSION.json
@@ -110,11 +110,11 @@ jobs:
110110
echo "cdn.semantic-ui.com" > cdn/CNAME
111111
112112
# Create README.md for the CDN using template
113-
cp scripts/assets/templates/cdn-readme.md.template cdn/README.md
113+
cp $GITHUB_WORKSPACE/scripts/assets/templates/cdn-readme.md.template cdn/README.md
114114
sed -i "s/VERSION/$VERSION/g" cdn/README.md
115115
116116
# Create index file for the CDN root using template
117-
cp scripts/assets/templates/cdn-index.html.template cdn/index.html
117+
cp $GITHUB_WORKSPACE/scripts/assets/templates/cdn-index.html.template cdn/index.html
118118
sed -i "s/VERSION/$VERSION/g" cdn/index.html
119119
120120
- name: Create root documentation
@@ -123,8 +123,8 @@ jobs:
123123
mkdir -p gh-pages-root
124124
125125
# Copy GitHub Pages assets from scripts/assets
126-
cp scripts/assets/gh-pages/README.md gh-pages-root/
127-
cp scripts/assets/gh-pages/index.html gh-pages-root/
126+
cp $GITHUB_WORKSPACE/scripts/assets/gh-pages/README.md gh-pages-root/
127+
cp $GITHUB_WORKSPACE/scripts/assets/gh-pages/index.html gh-pages-root/
128128
129129
# Replace version placeholders with actual version
130130
VERSION=${GITHUB_REF#refs/tags/v}

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)