You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the advice from #50, I created a new robot project as the template and copied over the contents of publish.gradle over into it. The issue I'm running into and trying to understand is how the publish gradle task works and how it hosts the Maven artifacts on to the repo's github.io page so that I can update the Maven URL in the vendordep.json file. Looking at how other vendordeps work (YAGSL, PathPlanner, Phoenix6, etc.), I can't seem to figure out how this gets facilitated.
My current understanding is that the ./gradlew publish -Pthirdparty command in the ci.yml file runs publish.gradle, which uses the releasesRepoUrl is used as an extension of the GitHub's page's path to point to where the Maven repo is. Additionally, the vendordep.json file gets placed separately using the vendordepJson() task since it is specific to WPILib and not a Maven artifact. So for my repo, if I set releasesRepoUrl to use public/repo and I set the vendordepJson() task to put the vendordep under the public folder, I should be able to get my vendordep with the URL https://4201vitruvianbots.github.io/Codex/public/frc4201Codex.json and one of the jar files of the library at https://4201vitruvianbots.github.io/Codex/public/repos/org/team4201/Codex-java/2025.0.1/Codex-java-2025.0.1.jar, but this doesn't seem to work. Is there a GitHub pages setting I'm supposed to enable?
The text was updated successfully, but these errors were encountered:
Okay, I realized I had a misunderstanding. When using GitHub pages on a repo where you are deploying from a branch, you generally need to run ./gradlew publish locally and then push the artifacts up as part of the repo in order for it to be hosted. You can do a GitHub action to do this automatically as a separate commit if you want to (what YAGSL does).
Reference repo I'm working off of: https://github.com/4201VitruvianBots/Codex
Following the advice from #50, I created a new robot project as the template and copied over the contents of
publish.gradle
over into it. The issue I'm running into and trying to understand is how thepublish
gradle task works and how it hosts the Maven artifacts on to the repo's github.io page so that I can update the Maven URL in the vendordep.json file. Looking at how other vendordeps work (YAGSL, PathPlanner, Phoenix6, etc.), I can't seem to figure out how this gets facilitated.My current understanding is that the
./gradlew publish -Pthirdparty
command in theci.yml
file runspublish.gradle
, which uses thereleasesRepoUrl
is used as an extension of the GitHub's page's path to point to where the Maven repo is. Additionally, the vendordep.json file gets placed separately using thevendordepJson()
task since it is specific to WPILib and not a Maven artifact. So for my repo, if I setreleasesRepoUrl
to usepublic/repo
and I set thevendordepJson()
task to put the vendordep under thepublic
folder, I should be able to get my vendordep with the URL https://4201vitruvianbots.github.io/Codex/public/frc4201Codex.json and one of the jar files of the library at https://4201vitruvianbots.github.io/Codex/public/repos/org/team4201/Codex-java/2025.0.1/Codex-java-2025.0.1.jar, but this doesn't seem to work. Is there a GitHub pages setting I'm supposed to enable?The text was updated successfully, but these errors were encountered: