-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Run the action from a different directory #70
Comments
I'm not sure if I understand this correctly: what's the difference between adding |
Hi @EndBug, Thanks for the fast reply 😉 The problem is that when running the action at the repository root will lead the Here you can see what I mean:
So my repository
I have read the whole docs, but may be I am missing something... Does the Let me know 😃 |
Ooooooh, ok sorry, now I get it. Your workflow would look like this: steps:
(...)
- run: 'cp -r bla bla bla'
- uses: EndBug/add-and-commit@v5
(...) |
This way you're running the action when your directory has already the right structure |
@EndBug Haaaaaa... sounds like a good idea too, I will try that and let you know 😃 , thx! |
@EndBug hum.. well, the problem is that using
|
Well you should have a (I know they can't be used both in the same, I've written the example using two different ones...) |
Good point, but the problem is that I need to run the That's why the VuePress documentation state to "navigate" into the dist build folder. |
The Vue docs say to navigate to that directory only because they're creating a new repo and then pushing to a custom URL, which my action doesn't currently support. This are your options:
In any of these three ways, there are no changes needed for the action. |
Fine, I will choose the more appropriate option. I am closing the issue 😉 |
Happy to help! |
Hi,
I am trying to use this Github Actions to push a VuePress website from a
source
branch to amaster
branch.The website is generated using a regular
npm run build
script and the build outputs to./docs/.vuepress/dist
.I would like to only push files inside of this directory to the
master
, not the whole path.The problem is that currently the action is running
git add
from the root folder, instead of running it from.docs/.vuepress/dist
... resulting in having the full path pushed to themaster
branch.As for now Github Actions
working-directory
can't be used in addition with theuses
command, it would be nice to have adirectory
option to tell the action where to run thegit add
command.Here is my worflow:
Here is a workflow we could have:
You can have a look at the current VuePress deploy script here:
https://vuepress.vuejs.org/guide/deploy.html#github-pages
Thanks for your feedback! 😉
The text was updated successfully, but these errors were encountered: