Skip to content

Commit

Permalink
ci: only upload specific files gh-page deploy (no .git node_modules)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 29, 2024
1 parent 4573eaa commit 75d3c19
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cdn_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ jobs:
git config user.email [email protected]
git pull https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git gh-pages
# Include all .js and .d.ts files in all dirs
rsync -av \
--include='*/' \
--include='*.js' \
--include='*.d.ts' \
rsync -av --exclude='.git' --exclude='node_modules' \
--include='components/*.js' \
--include='components/*.d.ts' \
--include='react/*.js' \
--include='react/*.d.ts' \
--include='theme/hot.css' \
--include='i18n/*.xliff' \
--exclude='*' \
"${{ github.workspace }}" ./
"${{ github.workspace }}/" ./
# Push content to gh-pages
git add .
Expand Down

0 comments on commit 75d3c19

Please sign in to comment.