Skip to content

Conversation

@ProjectSynchro
Copy link
Member

@ProjectSynchro ProjectSynchro commented Nov 4, 2020

This enables automatic publishing of the website, as well as the lua documentation.

Other PRs will require a personal access token, passed in as the secret name WEBSITE_ACCESS_TOKEN.
This should have workflow permissions to trigger workflows.

This should be merged before both naev/naev#1335 and naev/naev-website#5

Copy link
Member

@bobbens bobbens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this listens on other repos and when there are changes tries to update itself right?

@bobbens
Copy link
Member

bobbens commented Nov 5, 2020

Speaking of which, how to generate the repo key? This is not a personal token but a deploy key or webhook?

@ProjectSynchro
Copy link
Member Author

If I understand correctly, this listens on other repos and when there are changes tries to update itself right?

This is exactly right, the other repositories send a trigger via the REST API to this repository, which will run certain steps depending on what the trigger name is. (Think that manual-nightly script thingy)

Speaking of which, how to generate the repo key? This is not a personal token but a deploy key or webhook?

I think I misworded my initial message in this thread, I meant to say: you will need to create and upload a personal access token as a secret, as you'd be sending a trigger for this workflow remotely. So long as that token has 'workflow' permissions it should work. The jobs on the other repositories would trigger this as 'you' (or another service account would do as well.. so long as it has access) and then this workflow would take care of committing changes and pushing them.

@bobbens bobbens merged commit d3cc646 into naev:master Nov 6, 2020
@bobbens
Copy link
Member

bobbens commented Nov 6, 2020

Have to figure out the token thing still, but looks good, thanks!

@github-pages github-pages bot temporarily deployed to github-pages November 6, 2020 10:59 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants