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

Restrict GitHub Pages building to PRs on main branch #838

Closed
ns-rse opened this issue May 13, 2024 · 0 comments · Fixed by #839 or #840
Closed

Restrict GitHub Pages building to PRs on main branch #838

ns-rse opened this issue May 13, 2024 · 0 comments · Fixed by #839 or #840
Assignees

Comments

@ns-rse
Copy link
Collaborator

ns-rse commented May 13, 2024

Currently our documentation isn't available and I think it is because the .github/workflows/sphinx_docs_to_gh_pages.yaml runs on any push to any branch it seems.

We should restrict this to only run on pulls to the main branch.

Switch the following...

on:
  push:
    # Uncomment if only tagged releases are to have documentation built
    # tags:
    #   - v*
  workflow_dispatch: # Uncomment line if you also want to trigger action manually

...to...

on:
  pull_requests:
    branches:
      - main
  workflow_dispatch:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant