You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Github Actions] Improve HTML cache implementation #14
The GitHub implementation of cache works but isn't up-dateable.
So it would give the "feel" of a complete site but the PR will build the changed RST files and overwrite those lectures in the _build/website/jupyter_html folder.
I have written to GitHub to see if there is a way to save/retrieve artifacts to a central location to get updated copies of the site as PR's roll through.
We're sorry for the delay here -- thanks for reaching out! After speaking with our engineers about this, they let us know that you could use actions/cache for the case you've described around pull requests. Choosing a restore key that matches up with the number of the pull request might be one approach. However, they also let us know that pull requests cannot access their own caches.
Our team let us know that there's some open discussion around downloading artifacts from a different workflow using our API:
We hope this helps! For any other questions related to workflow configuration, such as syntax, virtual environments, or building actions, we recommend searching for an existing thread or create a new one in our GitHub Community Forum:
A cache strategy has been developed that allows using assets from cache.yml which runs whenever the main branch is updated. This greatly reduces build times for PRs, previews and deployments.
Activity
mmcky commentedon Apr 29, 2020
https://github.com/actions/cache
mmcky commentedon Apr 29, 2020
The GitHub implementation of
cacheworks but isn't up-dateable.So it would give the "feel" of a complete site but the PR will build the changed RST files and overwrite those lectures in the
_build/website/jupyter_htmlfolder.I have written to GitHub to see if there is a way to save/retrieve artifacts to a central location to get updated copies of the site as PR's roll through.
mmcky commentedon May 8, 2020
dailycache with the date parameter added to thecachekey if this becomes an issue.[-]Add caching to Github Action workflows[/-][+]Update Stale Cache for HTML Previews[/+]mmcky commentedon May 11, 2020
Included an implementation for daily
cachingforhtmlpreviews.[-]Update Stale Cache for HTML Previews[/-][+]Improve HTML cache implementation[/+]mmcky commentedon May 12, 2020
So
cacheis incompatible with ascheduledtype run. We won't get fullhtmlpreviews until this is merged.actions/cache#63
mmcky commentedon May 19, 2020
This will need to remain open until Github fixes cache builds to run on a
schedule[-]Improve HTML cache implementation[/-][+][Github Actions] Improve HTML cache implementation[/+]mmcky commentedon Jun 1, 2020
Response from
GitHubWe're sorry for the delay here -- thanks for reaching out! After speaking with our engineers about this, they let us know that you could use actions/cache for the case you've described around pull requests. Choosing a restore key that matches up with the number of the pull request might be one approach. However, they also let us know that pull requests cannot access their own caches.
Our team let us know that there's some open discussion around downloading artifacts from a different workflow using our API:
actions/download-artifact#3
https://developer.github.com/v3/actions/artifacts/
It's not possible to "share" artifacts between different workflows, but the API offers endpoints for programmatic access to download an artifact from another workflow. Granted, you would need to write your own script for doing this as there's not one official GitHub Action that does this.
If you have any more specific questions about using actions/cache, we highly encourage you to bring your use case in the form of an issue here:
https://github.com/actions/cache/issues
We're well-equipped to advise on GitHub Actions as it's documented in http://help.github.com/en/actions, but any specific advice for using the actions available in https://github.com/actions are best suited in the respective repository hosting that action.
We hope this helps! For any other questions related to workflow configuration, such as syntax, virtual environments, or building actions, we recommend searching for an existing thread or create a new one in our GitHub Community Forum:
https://github.community/t5/GitHub-Actions/bd-p/actions
mmcky commentedon Nov 17, 2022
A cache strategy has been developed that allows using assets from
cache.ymlwhich runs whenever themainbranch is updated. This greatly reduces build times for PRs, previews and deployments.