Watch our video guide to help you follow the steps below. Creating an actor from a private repository begins at 01:45.
Creating an actor from a public Git repository
From Apify Console, go to actors > My actors.
If you haven't created an actor yet, you can click on the ‘Create here’ or ‘Create new’ button.
Give the actor a title.
Go to your GitHub account and select the repository.
Go to ‘Code’, copy the Git URL, and then go back to the Apify platform and paste it in ‘Link GitHub repository’.
Click ‘Import actor’.
The actor is created, so now click the ‘Build’ button.
Click the ‘Start’ button to run the actor. After the run has succeeded, you can export your results.
Creating an actor from a private Git repository
From Apify Console, go to actors > My actors.
If you haven't created an actor yet, you can click on the ‘Create here’ tab or ‘Create new’ tab.
Give the actor a title.
If you’re starting with an empty starter actor, click the ‘Create new’ button.
Where you see ‘Source type’, switch from Web IDE to Git repository. Below you will paste your Git URL.
To do that, go to GitHub for the private repository you want to use, click Code, SSH, copy the URL, and paste it.
Now go back to Apify Console and paste the code in the Git URL under ‘Source type’, and click ‘Save’.
Click on the link that says ‘deployment key’, and copy the key in the box that pops up.
Now go back to GitHub. In Settings, under Security, click on ‘Deploy keys’, and then ‘Add deploy key’.
You can create a title in the title box, and paste the key in the key box beneath it. Check the box to 'allow write access' and click the ‘Add key’ button.
Now that we have our key, go back to Apify Console, and click ‘Build’.
When you see ‘succeeded’ for the build run, you can run the actor by clicking the ‘Start’ button. Once your run has succeeded, you can export your results.