Open
Description
I want to archive a specific subset of the files in my repository.
Currenty, I must use the following steps, to achieve this:
steps:
- name: Create a site directory
run: |
shopt -s globstar &&
tar -cvf site.tar **/*.html &&
mkdir site &&
tar -xf site.tar --directory site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'site'
This, apart from being error-prone, is not efficient, because of the unnecessary calls to tar
.
I think, that this could be achieved with the following:
steps:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: '**/*.html'