Closed
Description
Unless perhaps I'm missing it somewhere I don't believe the instructions to set up the github pages site for a new linkML project are explained in this repository.
Just adding a few lines about chaining the new repos settings/pages
then doing:
worked for me but I had to find that buried in some unofficial notes from @turbomam. Maybe just having this be formalized somewhere will save the next user some time. Much obliged!
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Activity
kaiiam commentedon Mar 29, 2023
I presume also running
make deploy
is needed?kaiiam commentedon Mar 29, 2023
There were also failures in the newly created linkml schema (e.g., https://github.com/kaiiam/mifc/actions/runs/4552698058) due to github actions not having write permission, so I had to fix that in the repo settings as well. Perhaps also something to note in the docs.
turbomam commentedon Apr 3, 2023
Ah yes. That's not a write permission issue. That an unclean tree issue, and it should be better documented. Or maybe the strategy/implementation needs some changes.
kaiiam commentedon Apr 3, 2023
Not sure what causes an unclean tree or how I got to it, all I did was follow the steps in this repo's readme file to generate my LinkML project. I pushed it to github as it said to do but there was the issue of the webpage not working and also the write permission causing the action to fail. So I'm just trying to document what I did to get over it, so that others who also might have that issue can know what to do or you can help them fix it.
Could you just add the extra steps needed to the docs so that people don't have to figure it out on their own? Or is there some other fix that can be done as to not need to generate those issues when you use the cookie cutter to create a new linkML project?
turbomam commentedon Apr 3, 2023
Yes, I will provide some more documentation.
In the mean time:
unclean tree: https://discourse.nixos.org/t/what-does-warning-git-tree-a-path-is-dirty-mean-exactly/20568
The solution is usually to commit and push all tracked files. That should solve the problem when running
make deploy
. I will have to look into the cases in which that error arise from the https://github.com/kaiiam/mifc/blob/main/.github/workflows/deploy-docs.yaml actionkaiiam commentedon Apr 3, 2023
My issue with github actions was:
which was causing the build to fail, there was a setting that I had to go in and fix something like allow write permission to actions. I had never run into that before (perhaps just my unfamiliarity with github actions), however if this always happens then it could be rectified with a note explaining what permission settings to change for the repo.
turbomam commentedon Apr 4, 2023
I believe the relevant action log here is https://github.com/kaiiam/mifc/actions/runs/4552278931/jobs/8027412535
kaiiam commentedon Apr 4, 2023
I think both happened I also meant this one: https://github.com/kaiiam/mifc/actions/runs/4552698058/jobs/8028363735 where there was the error:
I was able to "fix" this one by going to
https://github.com/kaiiam/mifc/settings/actions
andselecting read and write permissions
I'm pretty sure that's what did it because afterwards I didn't get that error: 403 again.
dalito commentedon Dec 8, 2023
After #89 it will not longer be necessary to allow "Read and write" for the whole project (as shown in your screenshot). "Read repository ..." will be enough. The PR also adds a note how to configure the project (in README).
kaiiam commentedon Dec 11, 2023
Thank you very much @dalito! Hopefully this helps future users create new linkML project pages more easily.
Much obliged,
Kai