tdwg / camtrap-dp

Camera Trap Data Package (Camtrap DP)
https://camtrap-dp.tdwg.org
MIT License
45 stars 5 forks source link

Symlinks cause website build to fail #304

Closed peterdesmet closed 1 year ago

peterdesmet commented 1 year ago

They've always worked before, but the latest GitHub Pages build indicates:

Site contained a symlink that should be dereferenced: /_data/camtrap-dp-profile.json.

We rely on symlinks so that files maintained in the root or in example are also accessible for Jekyll, which expect those files to be in the _data directory.

peterdesmet commented 1 year ago

The GitHub Pages documentation states however:

Note: If your repository contains symbolic links, you will need to publish your site using a GitHub Actions workflow. For more information about GitHub Actions, see "Actions."

Oddly enough, I tried a symlink in a fresh repository and there it still seems to work: http://peterdesmet.github.io/symlink-test/

peterdesmet commented 1 year ago

A fork of the repo also builds without issues: http://peterdesmet.github.io/camtrap-dp/. Not sure why it doesn't work (suddenly) for this repo. No symlinks were altered.

peterdesmet commented 1 year ago

The website is now build with GitHub Actions, see https://github.com/tdwg/camtrap-dp/blob/main/.github/workflows/jekyll.yml