HaxeFlixel / flixel-docs

Documentation for HaxeFlixel
72 stars 135 forks source link

Github Action that triggers `repository_dispatch` on haxeflixel/haxeflixel.com repo #275

Open ninjamuffin99 opened 7 months ago

ninjamuffin99 commented 7 months ago

Right now, the flixel-docs only go live only once the master branch on haxeflixel/haxeflixel.com repo gets either a push, a workflow_dispatch, or a repository_dispatch trigger event. repository_dispatch is something that we can call from outside of that repo via Octokit, so we can use that to build to the site with new documentation whenever a push gets made here, to have more LIVE documentation changes

Geokureli commented 7 months ago

should we close this, now?

ninjamuffin99 commented 7 months ago

this actually didn't work properly, I believe what's needed is some sort of Github token, since the default one provided via github actions{{ github.token }} doesn't give permissions to run other workflows! even with

permissions:
  contents: write
  actions: write

or anything like that