Skip to content

Commit

Permalink
fix: Update 'Build and move files' step to preserve new example folde…
Browse files Browse the repository at this point in the history
…r structure (#202)
  • Loading branch information
DafyddLlyr authored Jul 12, 2024
1 parent 12236a3 commit 0202c71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ jobs:
mv types/* "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/types"
mkdir -p "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples"
cp -r examples/**/*.json "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples"
# Copy JSON files, preserving directory structure
rsync -a --prune-empty-dirs --include '*/' --include '*.json' --exclude '*' examples/ "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples/"
# Remove JSON files from source destination
find examples -type f -name "*.json" -delete
- name: Checkout Dist Branch
if: steps.version_check.outputs.changed == 'true'
Expand Down

0 comments on commit 0202c71

Please sign in to comment.