Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork397
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I have multiple cases where I'd like to deploy a file or files, not a folder; for example, a -name:Deploy 🚀uses:JamesIves/github-pages-deploy-action@4.2.1with:repository-name:foobar/docbranch:mainfolder:README.md with It seems that the restriction to |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 3 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
As it stands pushing a single file in this regard isn't supported. Supporting such a thing would be considered a major version bump so there's a few things to consider.
I'm curious to learn more about your use case for this, and if there's a general consensus or not if this is something that multiple people want. In the interim you can push name:Build and Deployon:[push]jobs:build-and-deploy:runs-on:ubuntu-lateststeps: -name:Checkout 🛎️uses:actions/checkout@v2 -name:Generate deployment folderrun:| mkdir build mv README.md build/README.md -name:Deploy 🚀uses:JamesIves/github-pages-deploy-action@v4with:branch:mainrepository-name:foobar/docfolder:build# Deploy the newly created "build" folder. |
BetaWas this translation helpful?Give feedback.
All reactions
-
That's what I'm doing right now. Thanks for the concise reply! |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
You can control what gets deployed just with .gitignore. If you want to have some files in your repo but not your deployment, then you could copy an alternative .gitignore over the top of the normal .gitignore as a step before the deploy action. That's what I do - my normal .gitignore ignores dist/, and my deployment .gitignore ignores src/. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@curiousdannii Can you please provide an example script of how you are doing this. Thanks |
BetaWas this translation helpful?Give feedback.
All reactions
-
You literally just |
BetaWas this translation helpful?Give feedback.