-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Using checkout twice, keeping the previous folder #33
Comments
|
Shame, I was hoping this is possible... Edit: It's a private repo hence the token |
Just use 2+ separate jobs, they'll run in parallel too. Then use "save/download artifacts" actions to share data between them, if necessary. |
You mean in different yml files or in the same action yml file? |
You can have multiple jobs in the same workflow ( |
@thewavelength i'm working on a PR to fix will be in actions/checkout@v2 and will hopefully merge early next week |
For anyone else that's looking for a clear answer, setting the
build output for the
|
@gabrieljoelc how to add the For example run benchmark on both repository, but ensure both run in the same machine. |
This will run in error
|
Monika |
Gut! |
What do I wanto to achieve?
I want to deploy the
master
-branch and thebeta
-branch togh-pages
at the same time.master
should go togh-pages/
(root folder) andbeta
-branch togh-pages/beta
-folder.My idea
Currently I'm using actions/checkout twice (in a single job) with those two different branches. First I do checkout, then
npm install && npm run build
. Works quite well, until the second actions/checkout is executed. This action seems to remove the previous folder including all build results, so I'm unable to move both builds to adeploy
-folder to finally publish it togh-pages
. See parts of my script for details:Questions
gh-pages
?Notes
This idea works when not using actions/checkout but raw
git clone
. I guess that actions/checkout runs in some sort of docker container, which will be burned after operation.The text was updated successfully, but these errors were encountered: