Push to GitHub repo from Apify IDE?
Is it possible to publish/sync to a GitHub repo from the Apify web IDE?
So far, I have worked primarily in the IDE and not with the SDK locally.
I want to take an initial version backup to GitHub. I do not yet have a repo, but could make an empty one.
According to the instructions I’ve read, it seems the GitHub sync is more geared toward pulling down changes from GitHub to Apify.
If the only way is to first get a local version of the code and publish it to GitHub, I’m a bit cautious… what should I take… the contents of the source-code.zip export?
How is it supposed to work?
2 Replies
plain-purple•17mo ago
Hi, AFAIK there is no way to sync to a github repo directly from the Apify web IDE. As you say, you need to pull the changes from GH.
Setup is pretty easy:
1. download source-code.zip and unzip in an empty directory
2. create empty repository on GH and follow
…or create a new repository on the command line
directions
3. setup GH integration so that your actor is always built after change in your GH repo https://docs.apify.com/academy/expert-scraping-with-apify/managing-source-code#integrating-githubII - Managing source code | Academy | Apify Documentation
Learn how to manage your Actor's source code more efficiently by integrating it with a GitHub repository. This is standard on the Apify platform.
blank-aquamarine•17mo ago
Pushing directly to GitHub doesn't make sense since Apify IDE doesn't have Git history. Download the code as zip,
git init
and then push to your repo.