You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to integrate your Actors by setting up automated builds, deploys, and testing for your Actors using GitHub Actions or Bitbucket Pipelines.
3
+
description: Learn how to integrate your Actors by setting up automated builds, deploys, and testing for your Actors.
**Learn how to set up automated builds, deploys, and testing for your Actors using GitHub Actions or Bitbucket Pipelines.**
10
+
**Learn how to set up automated builds, deploys, and testing for your Actors.**
11
11
12
12
import Tabs from '@theme/Tabs';
13
13
import TabItem from '@theme/TabItem';
@@ -18,37 +18,73 @@ Automating your Actor development process can save time and reduce errors, espec
18
18
19
19
You can automate Actor builds and tests using your Git repository's automated workflows like [GitHub Actions](https://github.com/features/actions) or [Bitbucket Pipelines](https://www.atlassian.com/software/bitbucket/features/pipelines).
20
20
21
-
This article focuses on GitHub, but [we also have a guide for Bitbucket](https://help.apify.com/en/articles/6988586-setting-up-continuous-integration-for-apify-actors-on-bitbucket).
22
21
23
-
## Set up automated builds and tests
22
+
:::tip Using Bitbucket?
23
+
Follow our step-by-step guide to set up continuous integration for your Actors with Bitbucket Pipelines: [Read the Bitbucket CI guide](https://help.apify.com/en/articles/6988586-setting-up-continuous-integration-for-apify-actors-on-bitbucket).
24
+
:::
24
25
25
-
To set up automated builds and tests for your Actors you need to:
26
+
There are two main ways to set up continuous integration for your Actors: [Trigger builds with a Webhook](#option-1-trigger-builds-with-a-webhook), or [Set up automated builds and tests with GitHub Actions](#option-2-set-up-automated-builds-and-tests-with-github-actions). Choose the method that best fits your workflow.
26
27
27
-
1. Create a GitHub repository for your Actor code.
28
+
## Option 1: Trigger builds with a Webhook
29
+
30
+
To set up triggered builds with a webhook:
31
+
32
+
1. Go to your Actor's detail page in Apify Console, click on the API tab in the top right, then select API Endpoints. Copy the **Build Actor** API endpoint URL. The format is as follows:
Now your Actor will automatically rebuild on every push to the GitHub repository.
47
+
48
+
## Option 2: Set up automated builds and tests with GitHub Actions
49
+
50
+
To set up automated builds and tests with GitHub Actions, you need to:
51
+
52
+
1. You need to push your Actor to a GitHub repository.
28
53
1. Get your Apify API token from the [Apify Console](https://console.apify.com/settings/integrations)
29
54
30
55

31
56
32
57
1. Add your Apify token to GitHub secrets
33
-
1. Go to your repository > Settings > Secrets > New repository secret
58
+
1. Go to your repository > Settings > Secrets and variables > Actions > New repository secret
34
59
1. Name the secret & paste in your token
35
-
1. Add the Builds Actor API endpoint URL to GitHub secrets
36
-
1. Use this format:
60
+
61
+

62
+
63
+
1. Add the Build Actor API endpoint URL to GitHub secrets
64
+
1. Go to your repository > Settings > Secrets and variables > Actions > New repository secret
65
+
1. In Apify Console, go to your Actor's detail page, click the API tab in the top right, and then select API Endpoints. Copy the **Build Actor** API endpoint URL. The format is as follows:
66
+
:::note API token
67
+
Make sure you select the correct API token from the dropdown.
Setting up continuous integration (CI) for your Apify actors ensures that your code is always tested and built automatically whenever you push changes to your repository. This helps catch issues early and streamlines your deployment process, whether you're releasing to production or maintaining a beta branch.
115
148
116
-
Now your Actor will automatically rebuild on every push to the GitHub repository.
149
+
You can also integrate directly with GitHub, check out the [official Apify GitHub integration documentation](/platform/integrations/github).
0 commit comments