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

How to automatically archive and create snapshots #98

Open
kaelig opened this issue Aug 31, 2021 · 1 comment
Open

How to automatically archive and create snapshots #98

kaelig opened this issue Aug 31, 2021 · 1 comment
Labels
feature request New feature or request

Comments

@kaelig
Copy link
Member

kaelig commented Aug 31, 2021

I'm setting up the publishing workflow for a community group (important detail, as we don't deploy to Echidna), using spec-prod and Respec:

https://github.com/design-tokens/community-group

Our multiple specs are in the technical-reports directory, and for now, automatically deployed to URLs of this form:

How should we go about keeping dated snapshots of editor's drafts, working drafts, and actual specs so that the latest is easily reachable, while older versions can still be browsed?

@sidvishnoi
Copy link
Member

sidvishnoi commented Sep 3, 2021

It's not currently supported, though there are two ways this can be supported:

  1. Once spec-prod finishes deployment to gh-pages, use a custom script/step in your workflow to copy content of latest commit to a dated directory.
  2. spec-prod can probably support a GH_PAGES_STRATEGY option in future (GH_PAGES_STRATEGY: latest | snapshot | snapshot:YYYY-MM-DD). This will modify the DESTINATION to write once in a dated directory and once at root directory (or maybe symlink latest). I can't give a timeline, but it's likely after present issues are closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants