how to include files that are in .gitignore? #1116
Unanswered
maxandersen
asked this question in
Q&A
Replies: 3 comments 5 replies
|
I'm currently facing the same problem. Have you found a solution @maxandersen ? |
1 reply
|
What does your workflow look like? |
3 replies
|
I want to add a new folder but generated in pipeline. How can I do to upload? I have in my structure a folder called _posts with markdowns and I have a subfolder with a project. I want to send this subfolder to another branch but add the _posts to there I made this: - name: Copy posts to server folder
run: cp -r ./_posts ./my-server
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: server # The branch the action should deploy to.
FOLDER: my-server # The folder the action should deploy.But this doesnt work :/ How can I do to upload _posts copied? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I got a site where html files are generated but since I don't want them committed into main branch I have
*.htmlin my .gitignorewhich results in that the deploy to github does not include the html files.
Is there a way to tell github-pages-deploy-action to explicitly include certain file names/patterns in its commit or tell it to ignore .gitignore ?
All reactions