Skip to content

Commit

Permalink
Copy to directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis committed Sep 20, 2023
1 parent a186328 commit 1b94c5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ jobs:
- name: Copy resource reference docs into docs repo
run: |
mkdir -p docs/docs/snippets/resource-docs/
export RESOURCE_DOCS=$(find radius/hack/bicep-types-radius/generated/ -type f -name '*.md' -print0 | xargs -0)
# Copy all markdown files from radius/hack/bicep-types-radius/generated/ to docs/docs/snippets/resource-docs/
export RESOURCE_DOCS=$(find radius/hack/bicep-types-radius/generated/ -type f -name '*.md')
for file in $RESOURCE_DOCS; do
fileTarget=${file#radius/hack/bicep-types-radius/generated/}
echo Copying $file to docs/docs/snippets/resource-docs/$fileTarget
cp -p $file docs/docs/snippets/resource-docs/$fileTarget
dirTarget=$(dirname $fileTarget)
echo "Copying $file to docs/docs/snippets/resource-docs/$dirTarget"
cp -p $file docs/docs/snippets/resource-docs/$dirTarget
done
- name: Upload resource reference docs
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 1b94c5f

Please sign in to comment.