-
Notifications
You must be signed in to change notification settings - Fork 84
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
Download pages artifact #57
Comments
Although this action's default retention period for uploaded artifacts defaults to roughly 24 hours, you can extend that to up to 90 days (unless your organization specifies a shorter timeline) using the upload-pages-artifact/action.yml Lines 13 to 16 in 64bcae5
Moving beyond that to your general question: There is not currently a way to retrieve or reconstruct a Pages site's artifact after it is deployed today (or at least once the artifact's retention period has expired). 💡 It is an interesting idea, though! Definitely open to considering adding backend support and a separate Action for it in the future, but it's not something we can prioritize right now. 😕 FWIW, I've added an item to the Pages team backlog to consider this in the future. No promises that it will happen or any forecasted timeline, though. ❤️ If you wanted to work around it for now (without using a
It's not pretty, but just wanted to pitch the idea in case it helps. 🤞🏻 🤷🏻 Related: |
Thank you for your answer and the workaround, I will try it. I will just add my use case for your internal backlog item: I want to document the API of my library. This library has different versions, and the documentation (Javadoc) supports different API versions with a UI version picker. At the moment, I need to store the old API docs on the The workaround, to checkout old tags of the library and built the documentation during a new release, often doesn't work, easily due to dependency/JVM or os support, for example, older versions of the library don't support a current JVM, so you would need to switch to an older JVM too. |
@hfhbd Did you find a nice way to do this? |
@RebeccaStevens We tried the index and download option, but it didn't work well due the download overhead, so we keep a checked in docs folder, which is updated/keep in sync by our build tool. Not ideal, but better than having a gh-Pages branch. |
Here is a workaround Stop doing:
Instead do:
And download with:
|
Thinking ahead, it may be useful to compare a pending change to the live site. In order to do that, we need a way to access the live site. This can be a problem since GitHub Actions artifacts have a lifetime. Following the advice in [1], use the GitHub Actions cache to store a copy of the live site during deployment. [1]: actions/upload-pages-artifact#57 (comment)
Is there an orthogonal action to download the actual website/pages artifact? The uploaded github-pages artifact attached to the CI output expired after a few days.
The text was updated successfully, but these errors were encountered: