Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,14 @@ jobs:
unzip public-dir.zip
rm -f public-dir.zip

- name: Debug - Check public directory
run: |
echo "Contents of public directory:"
ls -la public/
echo "Total size of public directory:"
du -sh public/

- name: Deploy to Netlify
id: netlify
run: |
npm install -g netlify-cli
netlify deploy --dir=public --site=$NETLIFY_SITE_ID --auth=$NETLIFY_AUTH_TOKEN --message="Deploy from GitHub Actions" > deploy_output.txt 2>&1
cat deploy_output.txt
DEPLOY_URL=$(grep -o 'Website draft URL: https://[^[:space:]]*' deploy_output.txt | sed 's/Website draft URL: //')
echo "deploy-url=$DEPLOY_URL" >> $GITHUB_OUTPUT
uses: nwtgck/actions-netlify@v2.1
with:
publish-dir: 'public'
production-deploy: false
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down