Apify Discord Mirror

Updated 5 months ago

Push to GitHub repo from Apify IDE?

At a glance
The community member is asking if it is possible to publish or sync their Apify web IDE code to a GitHub repository. The comments indicate that there is no direct way to sync the code from the Apify web IDE to GitHub. The recommended approach is to first download the source-code.zip file, unzip it, create an empty GitHub repository, and then push the code to the repository. The community members also mention that the Apify web IDE does not have Git history, so pushing directly to GitHub does not make sense.
Useful resources
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?
o
L
2 comments
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-github
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.
Add a reply
Sign up and join the conversation on Discord