R
Railway14mo ago
Alaanor

My build depends on git submodules, how can I pull them

Are there any solutions ? Can I continue to use github actions alternatively ?
Solution:
@Alaanor as of right now, there is no submodule support that I’m aware of. Aside from actions, you could always use the CLI to deploy with railway up which will bundle your current working directory and push it for build
Jump to solution
9 Replies
Percy
Percy14mo ago
Project ID: N/A
Alaanor
AlaanorOP14mo ago
N/A
Solution
MantisInABox
MantisInABox14mo ago
@Alaanor as of right now, there is no submodule support that I’m aware of. Aside from actions, you could always use the CLI to deploy with railway up which will bundle your current working directory and push it for build
Alaanor
AlaanorOP14mo ago
oh this upload the current working directory, sound perfect to use it from github action then I wasn't sure what the command did exactly from the docs Thanks !
MantisInABox
MantisInABox14mo ago
No problem.
Alaanor
AlaanorOP14mo ago
It doesn't seems to be uploading the files :( I setup the whole thing and made a debug using pwd and some ls -lah to see whatever the files were in or not, on github side they existed within the current folder before the upload (in some nested directory, but it was part of .), on railway, they just don't exist as if it was a simple git clone
Alaanor
AlaanorOP14mo ago
the only log I get on github side from the railway cli is this
No description
Alaanor
AlaanorOP14mo ago
so it seems like it was uploading .. but was it really ? what did it upload Found the solution ! hype was trying to upload the stuff so that I could build and deploy on railway side (but with the missing files). Instead I build completely until the end on github side and just railway up the final build. The railway build command is something like echo "do nothing" lol, but at least I can skip and get my stuff working PauseChamp don't know why the first approach did not work but whatever
Heath
Heath14mo ago
FYI you can also use gh actions to pull the submodules, add the files and commit to a new branch, and then deploy that branch from railway. Probably better to figure out railway up but I didn't realize that would work from an action when I was working it out https://github.com/heathhenley/ChEBot/blob/main/.github/workflows/git_submodule_workaround.yaml
GitHub
ChEBot/.github/workflows/git_submodule_workaround.yaml at main · he...
Contribute to heathhenley/ChEBot development by creating an account on GitHub.
Want results from more Discord servers?
Add your server