Skip to content

Commit

Permalink
Merge pull request #75 from richardadonnell/1.49
Browse files Browse the repository at this point in the history
Update zip-on-pr.yml
  • Loading branch information
richardadonnell authored Nov 24, 2024
2 parents 64f577e + a8d9e71 commit 441df1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/zip-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
# Create directories
mkdir -p releases
mkdir -p upwork-job-scraper-temp
mkdir -p upwork-job-scraper-temp/upwork-job-scraper
# Debug: Print current directory and structure
echo "Current directory structure:"
Expand All @@ -82,19 +82,19 @@ jobs:
webhook.js
)
# Copy files to temporary directory
# Copy files to temporary directory inside the upwork-job-scraper subfolder
echo "Copying files..."
for file in "${files[@]}"; do
if [[ -f "upwork-job-scraper/$file" ]]; then
cp "upwork-job-scraper/$file" upwork-job-scraper-temp/
cp "upwork-job-scraper/$file" upwork-job-scraper-temp/upwork-job-scraper/
echo "✓ Copied $file"
else
echo "❌ Error: upwork-job-scraper/$file does not exist."
exit 1
fi
done
# Create zip with the correct structure
# Create zip from the parent temp directory to include the subfolder
echo "Creating zip file..."
cd upwork-job-scraper-temp
zip -r "../releases/upwork-job-scraper-${{ env.version_tag }}.zip" .
Expand Down

0 comments on commit 441df1c

Please sign in to comment.