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

Added code to allow saving the cache directory #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Omegaice
Copy link

I wanted to utilize the cache action but this action didn't expose the cache directory, so I updated it to mount the cache directory.

It can be further enhanced by any users if they use something like the following in their config.toml to store the generated images and assets in the cache directory as well. The other option would be to also expose the generated directory as part of this action.

[caches]
  [caches.assets]
    dir = ':cacheDir/:project/_gen'
    maxAge = -1
  [caches.getcsv]
    dir = ':cacheDir/:project'
    maxAge = -1
  [caches.getjson]
    dir = ':cacheDir/:project'
    maxAge = -1
  [caches.images]
    dir = ':cacheDir/:project/_gen'
    maxAge = -1
  [caches.modules]
    dir = ':cacheDir/modules'
    maxAge = -1

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

Successfully merging this pull request may close these issues.

1 participant