From a13a1ee069f53c62e4091a4827773e290cefaca4 Mon Sep 17 00:00:00 2001 From: Bubun Das Date: Mon, 27 Nov 2023 06:46:52 +0000 Subject: [PATCH] Workflow tweaked --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 390f4e2..3c078d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,17 +16,17 @@ jobs: - name: Create Zip Archive run: | # Create a "scalewithus" folder inside the zip - mkdir -p /tmp/scalewithus + mkdir -p /tmp/scalewithus/scalewithus # Copy all files from the main branch to the "scalewithus" folder - cp -r ./* /tmp/scalewithus/ + cp -r ./* /tmp/scalewithus/scalewithus/ # Create a zip archive named "archive.zip" containing the "scalewithus" folder - cd /tmp/ - zip -r scalewithus.zip scalewithus + # cd /tmp/ + # zip -r scalewithus.zip scalewithus # Optionally, you can move the archive to a specific location or upload it as an artifact - mv scalewithus.zip /tmp/scalewithus # Move the archive to a specific location + # mv scalewithus.zip /tmp/scalewithus # Move the archive to a specific location # echo "::set-output name=zip-path::/tmp/scalewithus/archive.zip" # Set an output variable to pass the zip file path to the next step working-directory: ${{ github.workspace }} @@ -34,4 +34,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: Scalewithus WHMCS Module - path: /tmp/scalewithus/scalewithus.zip \ No newline at end of file + path: /tmp/scalewithus \ No newline at end of file