Skip to content

Commit dc42fa4

Browse files
committed
copy files
1 parent a0711fb commit dc42fa4

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,23 @@ jobs:
4949
BASE_PATH: ${{ steps.base_path.outputs.base_path }}
5050
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
5151
# If you have other environment variables, set them here
52-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Copy build-time JSON files to dist
55+
run: |
56+
# Copy JSON files from public/ to dist/ (they're written during build but after public/ is copied)
57+
if [ -f "public/build-data-pr.json" ]; then
58+
cp public/build-data-pr.json dist/build-data-pr.json
59+
echo "✓ Copied build-data-pr.json to dist/"
60+
fi
61+
if [ -f "public/build-data-pypi.json" ]; then
62+
cp public/build-data-pypi.json dist/build-data-pypi.json
63+
echo "✓ Copied build-data-pypi.json to dist/"
64+
fi
65+
if [ -f "public/build-data-contributors.json" ]; then
66+
cp public/build-data-contributors.json dist/build-data-contributors.json
67+
echo "✓ Copied build-data-contributors.json to dist/"
68+
fi
5369
5470
- name: Upload artifact
5571
uses: actions/upload-pages-artifact@v3

package-lock.json

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

0 commit comments

Comments
 (0)