Skip to content

Commit

Permalink
Add step to clear docs directory before moving files
Browse files Browse the repository at this point in the history
In the GitHub Actions workflow for page releases, a step has been added that clears the docs directory before moving files to it. This is to prevent file or folder existence conflicts when moving the new build assets into the directory.
  • Loading branch information
mdsadiqueinam committed Apr 13, 2024
1 parent ca44b2e commit b1d54fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/page-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run: |
git config user.name "md sadique inam" # Replace with your name
git config user.email "[email protected]" # Replace with your email
rm -rf ./docs/* # empty the folder before moving to prevent file/folder already exists
mv ../wasmJs/* ./docs/ # Move extracted assets to /docs folder
git add docs/ # Add the /docs folder to Git
git commit -m "Update Wasm assets from build"
Expand Down

0 comments on commit b1d54fc

Please sign in to comment.