how to include files that are in .gitignore? #1116
Replies: 3 comments 5 replies
-
I'm currently facing the same problem. Have you found a solution @maxandersen ? |
Beta Was this translation helpful? Give feedback.
-
What does your workflow look like? |
Beta Was this translation helpful? Give feedback.
-
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/[email protected]
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? |
Beta Was this translation helpful? Give feedback.
-
I got a site where html files are generated but since I don't want them committed into main branch I have
*.html
in 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 ?
Beta Was this translation helpful? Give feedback.
All reactions