Skip to content

Commit

Permalink
Workflow tweaked
Browse files Browse the repository at this point in the history
  • Loading branch information
bubundas17 committed Nov 27, 2023
1 parent 7b39403 commit a13a1ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ 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 }}

- name: Upload Zip Artifact
uses: actions/upload-artifact@v2
with:
name: Scalewithus WHMCS Module
path: /tmp/scalewithus/scalewithus.zip
path: /tmp/scalewithus

0 comments on commit a13a1ee

Please sign in to comment.