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

CI: Add workflow for managing version listing #1836

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

dopplershift
Copy link
Member

Description Of Changes

On any push to the gh-pages, this runs a Python script that looks at all the available v[0-9]* directories and sets the latest link to the highest one, and keeps in the listing the most recent 4.

The only way this workflow is able to run triggered by pushes to the gh-pages branch is by being present on the gh-pages branch, which is why this is going there. I (with @dcamron) considered instead triggering on page_build events in order to keep this with the rest of the MetPy GHA workflows on main, but:

  • This wouldn't allow us to skip running on updates to the dev documentation
  • page_build isn't really the right action to be triggering this, it's only a consequence of the push, which is what we want

Checklist

On any push to gh-pages, this runs a Python script that looks at all the
available v[0-9]* directories and sets the latest link to the highest,
and keeps in the listing the most recent 4.
@dopplershift dopplershift added Area: Infrastructure Pertains to project infrastructure (e.g. CI, linting) Type: Feature New functionality labels Apr 28, 2021
@dopplershift dopplershift added this to the 1.0.1 milestone Apr 28, 2021
@dopplershift dopplershift mentioned this pull request Apr 28, 2021
2 tasks
@dcamron dcamron merged commit 9432dc9 into Unidata:gh-pages Apr 28, 2021
@dopplershift dopplershift deleted the versions-workflow branch April 28, 2021 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Infrastructure Pertains to project infrastructure (e.g. CI, linting) Type: Feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants