Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsadiqueinam committed Apr 13, 2024
1 parent 488d229 commit 38ef40e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/page-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,21 @@ jobs:
# Assuming launchpad/build/dist/wasmJs/productionExecutable exists after build
mkdir -p ./wasmJs # Create a folder to store extracted assets locally
cp -r launchpad/build/dist/wasmJs/productionExecutable/* ./wasmJs/
ls -l wasmJs
- name: Checkout Destination Repo (shallow clone)
uses: actions/checkout@v4 # Checkout the destination repository (shallow clone)
with:
repository: mdsadique-inam/launchpad
ref: main # Adjust branch if needed
path: ./launchpad
token: ${{ secrets.PUSH_TOKEN }} # Use a secret for access token
fetch-depth: 1 # Only download the latest commit for efficiency

- name: Push Wasm Assets to /docs
run: |
git config user.name "md sadique inam" # Replace with your name
git config user.email "[email protected]" # Replace with your email
mv ./wasmJs/* ./docs/ # Move extracted assets to /docs folder
mv ./wasmJs/* ./launchpad/docs/ # Move extracted assets to /docs folder
git add docs/ # Add the /docs folder to Git
git commit -m "Update Wasm assets from build"
git push main # Push the new branch
Expand Down

0 comments on commit 38ef40e

Please sign in to comment.