Azure / API-Portal

API Portal lets you create and publish a customized site with API documentation, for free and without writing any code.
MIT License
173 stars 141 forks source link

Errors deploying gh-pages branch #71

Closed sitestudio closed 1 year ago

sitestudio commented 1 year ago

Steps to get to this point:

  1. Fork the repo
  2. Choose to deploy from gh-pages branch via Actions
  3. Change publish-on-checkin.yml to point to node 16 and v3 actions
  4. Add a dummy file called /templates/default.json to get past the build failing on that file missing
  5. Pulled down code, build and ran designer, made a basic change and saved it (change was to add text)
  6. Push changes back up to the repo and then the pipeline attempts to build and deploy

Getting the following error (happens even before steps 5 and 6 above):

Push the commit or tag /usr/bin/git push origin gh-pages remote: Permission to QED-DeveloperPortal/API-Portal.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/QED-DeveloperPortal/API-Portal.git/': The requested URL returned error: 403 Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"

sitestudio commented 1 year ago

Managed to get it all working by messing around with various things including the check-in yaml.