sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.6k stars 439 forks source link

Fix error publishing docs #1619

Closed dwickern closed 3 months ago

dwickern commented 3 months ago

Fixes #1597 Supersedes #1618

I'm opening this PR from this repository instead of my fork. Hopefully that will fix the permissions issue.

dwickern commented 3 months ago

Well, it's a different error at least

[error] remote: error: GH006: Protected branch update failed for refs/heads/gh-pages.        
[error] remote: error: Required status check "typesafe-cla-validator" is expected.        
[error] To https://github.com/sbt/sbt-native-packager
[error]  ! [remote rejected]   gh-pages -> gh-pages (protected branch hook declined)
[error] error: failed to push some refs to 'https://github.com/sbt/sbt-native-packager'
[error] Nonzero exit code (1) running git.
[error] (ghpagesPushSite) Nonzero exit code (1) running git.
dwickern commented 3 months ago

Successfully published! 🎉 https://www.scala-sbt.org/sbt-native-packager/

I used b6c9142e88d4a868f49ed4a927053940982a2eea to test publishing from this PR. I'll drop the commit before merging. Importantly, I had to open this PR from the main repo and not my fork in order for Github Actions to have write permission. You can see the permissions granted by GITHUB_TOKEN in the "Set up job" phase of the Github Actions job.

I made the following changes outside of this PR:

muuki88 commented 3 months ago

Amazing work 🙏💪thanks a lot