From fe6e7857c32dbc71ffbf2589e741cb7e62856e37 Mon Sep 17 00:00:00 2001 From: Md Sadique Inam Date: Sat, 13 Apr 2024 18:41:05 +0530 Subject: [PATCH] working --- .github/workflows/page-release.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/page-release.yml b/.github/workflows/page-release.yml index 3f46371..7b42f28 100644 --- a/.github/workflows/page-release.yml +++ b/.github/workflows/page-release.yml @@ -13,14 +13,14 @@ jobs: steps: - uses: actions/checkout@v4 # Checkout the source code -# - name: Run Gradle Build -# run: ./gradlew :launchpad:wasmJsBrowserProductionWebpack -# -# - name: Extract Wasm Assets -# run: | -# # 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/ + - name: Run Gradle Build + run: ./gradlew :launchpad:wasmJsBrowserProductionWebpack + + - name: Extract Wasm Assets + run: | + # 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/ - name: Checkout Destination Repo (shallow clone) uses: actions/checkout@v4 # Checkout the destination repository (shallow clone) @@ -29,16 +29,13 @@ jobs: token: ${{ secrets.PUSH_TOKEN }} # Use a secret for access token fetch-depth: 1 # Only download the latest commit for efficiency path: launchpad - submodules: true - name: Push Wasm Assets to /docs working-directory: ./launchpad run: | - ls -l - ls -l .. git config user.name "md sadique inam" # Replace with your name git config user.email "md.sadique32@gmail.com" # Replace with your email - mv ../PDNS-Manager/wasmJs/* ./docs/ # Move extracted assets to /docs folder + 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" git push main # Push the new branch