-
I get the error in #68 and #59 however on a PR from the same repository and without pushing to a different repository. # .github/workflows/preview.yml
name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: write
pull-requests: write
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Install dependencies
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material ipykernel nbconvert traitlets jupytext pandas python-markdown-math mkdocs-simple-hooks pillow cairosvg matplotlib scipy plotly ipywidgets
- name: Build site
- run: mkdocs build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./site/ and this deployment: https://github.com/Hephaestus-Energy-Forge/Hephaestus-Energy-Forge/actions/runs/7597038400/job/20691926420 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@FreaxMATE A couple of things here:
TL;DR: You've already fixed the problem in your Ping me here if that doesn't work. |
Beta Was this translation helpful? Give feedback.
@FreaxMATE A couple of things here:
It looks like the preview is going to the wrong place. It took me a good while to work out why your preview was being deployed to the
pr-preview
branch instead of togh-pages
, but it looks like that's because you started the pull request before you removed the branch parameter from the workflow file in this commit: Hephaestus-Energy-Forge/Hephaestus-Energy-Forge@ff680cf. It looks like you then opened and closed the PR a lot to try to get it to update. To get it to update, you'll need to get those changes from the main branch into the PR branch -git checkout feature/chapter-1
then eithergit merge main
orgit rebase main
.As for why the preview is f…