Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gh actions workflow to build api docs to gh-pages #24

Merged
merged 3 commits into from
Jul 10, 2021

Conversation

tong
Copy link
Contributor

@tong tong commented Jul 8, 2021

Like:
https://github.com/tong/armsdk/actions

https://tong.github.io/armsdk/

… to never have have outdated docs again.

push:
branches: [ master ]
pull_request:
branches: [ master ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Very cool! Two little questions:

  • I don't know much about GitHub CI, but if the action (and with it the deployment of gh-pages) is run on pull requests, doesn't that mean that the API documentation is updated even for unmerged PRs?
  • Could it make more sense to only run this action when a new tag/release is created? I'm undecided on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right.
I've now split into 2 workflows.
The first on builds the docs on every push, pr (for testing).
The second runs if a new tag is created and pushes to gh-pages.

@luboslenco luboslenco merged commit a177dc6 into armory3d:master Jul 10, 2021
@tong tong deleted the action-build-doc-pages branch July 10, 2021 12:23
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.

3 participants