Open dsm-72 opened 1 year ago
Just want to make sure, you have also pushed the sidebar.yml
file to the repo?
@deven-gqc yes. Default .gitignore
file and the sidebar is there. Trying to manually route to a subpage also fails
Default .gitignore file and the sidebar is there
I'm not sure if I understand the last statement. If your gitignore
file has sidebar.yml
remove it, and then push the file.
You can look at this minimal repo to see the setup of _quarto.yml
, sidebar.yml
and nbdev.yml
@deven-gqc I made a new nbdev project so it has the default .gitignore file i.e. sidebar.yml, _quarto.yml etc are all in the repo.
Can you please a small reproducible example for this? I'm not sure if your issue might be related to #1300
@deven-gqc I made a new private nbdev repo, copy-pasta 00_core a few times, set up the import and pages and previews ok, but no luck on deployment for GitHub
@deven-gqc
I changed by deploy.yaml from
name: CI
on: [workflow_dispatch, pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: fastai/workflows/nbdev-ci@master
with:
version: '3.10'
to
name: Deploy to GitHub Pages
on: [workflow_dispatch, pull_request, push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: fastai/workflows/quarto-ghp@master
with:
version: '3.10'
Push the commit or tag
[661](https://github.com/dsm-72/degex/actions/runs/4307207983/jobs/7511993656#step:2:679)
/usr/bin/git push origin --force gh-pages
[662](https://github.com/dsm-72/degex/actions/runs/4307207983/jobs/7511993656#step:2:680)
remote: Write access to repository not granted.
[663](https://github.com/dsm-72/degex/actions/runs/4307207983/jobs/7511993656#step:2:681)
fatal: unable to access 'https://github.com/dsm-72/degex.git/': The requested URL returned error: 403
[664](https://github.com/dsm-72/degex/actions/runs/4307207983/jobs/7511993656#step:2:682)
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
I think this is documented in the tutorial. https://nbdev.fast.ai/migrating.html#edit-workflow-permissions
@deven-gqc any updates?
Can you share a small reproducible example?
Provide a minimally reproducible example
I have another issue (see here: https://github.com/fastai/nbdev/issues/1279) and have changed my workflow files accordingly. I ran
nbdev_prepare
andnbdev_preview
andnbdev_docs
all ran successful (and locally I see all the pages and the sidebar). Only on GitHub I dont.If we are not able to reproduce your error, we may close your issue.