Skip to content

Commit

Permalink
update preview with debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shacharmirkin committed Aug 20, 2024
1 parent 4200e18 commit 9f3cd10
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3 # Updated to v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -22,11 +22,27 @@ jobs:
bundle install
- name: Build site
run: bundle exec jekyll build
run: bundle exec jekyll build --verbose

- name: List built files
run: |
echo "Contents of _site directory:"
ls -R _site
- name: Deploy preview
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
destination_dir: preview/${{ github.ref_name }}

- name: Debug - List gh-pages branch
run: |
git fetch origin gh-pages:gh-pages
git checkout gh-pages
echo "Contents of preview directory:"
ls -R preview
- name: Print preview URL
run: |
echo "Preview should be available at: https://shacharmirkin.github.io/preview/${{ github.ref_name }}/"

0 comments on commit 9f3cd10

Please sign in to comment.