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
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
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}
0 commit comments