-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
option to commit .github files #163
Comments
Adding a new option
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_files: |
.env
.nvmrc
|
If Then default value of |
Setting default value of |
Yes. We can exclude inputs:
exclude_files:
description: 'Set files to exclude from a publish directory.'
required: false
default: '.github' |
To mean that the option has files or directories, we should probably call it inputs:
exclude_assets:
description: 'Set files or directories to exclude from a publish directory.'
required: false
default: '.github' |
How to exclude only files under |
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: false Using |
Some users can have files that are named |
I agree with you. Using empty string is better. |
Why not excluding all files and directories starting with |
Excluding all dot files will be a breaking change for existing users. |
But else we have to discuss what is excluded by default. There are many dot files like the |
OK, but why should |
@Legion2 The reason is described here Some users use |
OK now I understand. When |
If you end up going with some variation of |
Yes! We need a friendly description of the option. It is probably useful to enable regular expression for the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
forget my last message, I'm using @pawsong specup/actions-gh-pages@master temporary fix! thanks |
also just realize I could merge the steps of my action and didn't need to have another YAML on gh-pages branch! thanks But I can see that having you feature to selective exclude_files is a great way to go! rather than hardcode filtering |
Thank you for your feedback! |
This comment has been minimized.
This comment has been minimized.
The |
v3.7.0-5 is working for me now |
The beta v3.7.0-6 has been released. Could someone test this? The - name: Deploy
uses: peaceiris/actions-gh-pages@v3.7.0-6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# exclude_assets: '' # Set empty to deploy .github
# exclude_assets: 'exclude-file1,exclude-file2' # Split multi files or directory with comma
exclude_assets: '.github,exclude-file.txt,exclude-dir/**.txt' |
I am using
|
Thank you for the report and suggestion. Enhancement
Since this action always ignores Supporting a pattern
|
Good job This feature can be extremely useful for anyone who doesn't have an easy way to do out-of-source builds, I wanted to try it out but I'm encountering issues:
The error is inconsistent, it didn't occur previously, then I deleted the |
Currently, I do not know why it fails to locate - name: Build
run: |
npm run build
rm -rf ts
Your |
Ohh, embarrassing! must have deleted it from the list without noticing. |
First off, love the action. However, I ran into trouble using exclude_assets: "posts/**.jpg" exclude_assets: "posts/**/*.jpg" WorkaroundThe workaround I'm currently using is to create a
Anyways, I would love it if I could get |
@kurtbruns Thank you for your feedback! Could you open another issue and provide more details? |
Thank you for sharing this good project :)
Is your feature request related to a problem? Please describe.
In some use cases, we want to commit
.github
workflow files so that we can trigger actions on gh-pages branch.Describe the solution you'd like
An option to determine if
.github
files to commit or not.Describe alternatives you've considered
I made a commit to disable
.github
filtering, but I know this is a temporary workaround.specup@9cb1a7c
The text was updated successfully, but these errors were encountered: