-
-
Notifications
You must be signed in to change notification settings - Fork 425
Closed
Labels
Description
Is your feature request related to a problem? Please describe
Some users seem to want to deploy to a subdirectory.
Describe the solution you'd like
Add a new option destination_dir
for setting a directory name.
Describe alternatives you've considered
We can use the option keep_files
in this case already. But it seems to be a little difficult for users to understand the behavior.
- name: Setup assets
run: |
mkdir public subdir1
mv your_contents ./subdir1/
mv ./subdir1 ./public/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
keep_files: true
After we get the destination_dir
option, the above steps will be merged into one as follows.
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
destination_dir: ./subdir1
Additional context
It seems tedious to implement and test it in consideration of a variety of situations.
To be investigated:
- Weird nesting of content folders in HUGO build #507 Weird nesting of content folders
neumantm and BarkingBad