2023-01-18 09:23:36 +01:00
---
2023-07-14 14:37:01 +02:00
title: All with GitHub Actions
2023-01-18 09:50:39 +01:00
weight: 35
2023-01-18 09:23:36 +01:00
---
{{% notice note %}}
2023-07-13 13:06:05 +02:00
This build uses GitHub Actions, you will need a GitHub account, also building can be slow, however this requires no development environment.
2023-01-18 09:23:36 +01:00
{{% /notice %}}
2023-02-03 23:19:24 +01:00
## Make a fork
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Goto https://github.com/rustdesk/rustdesk/fork and click "Create fork".
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
## Set your environment variables (optional)
2023-01-18 09:23:36 +01:00
{{% notice note %}}
You only need to do this if you want to change the default server and public key.
2023-01-20 04:58:08 +01:00
2023-07-14 14:37:01 +02:00
The server URL and key you are using is hidden from other users on GitHub however they can download your client and connect to your server. If you require a fully private repo you can import the RustDesk client repo using https://github.com/new/import. **If you use a private repo you have limited amounts of builds you can create per month, if you need more you will need to have a paid GitHub account.**
2023-01-18 09:23:36 +01:00
{{% /notice %}}
2023-02-03 23:19:24 +01:00
On your fork you just created goto "Settings -> Secrets and variables -> Actions".
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Click "New repository secret", for the name put RENDEZVOUS_SERVER, for the secret put your servers name/ip address.
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Click "Add secret".
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Click "New repository secret", for the name put RS_PUB_KEY, for the secret put your servers public key.
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Click "Add secret".
2023-01-18 09:23:36 +01:00
## Enable workflows
2023-02-03 23:19:24 +01:00
On your fork you just created goto "Settings -> Actions -> General".
2023-01-20 05:45:34 +01:00
2023-03-09 12:29:25 +01:00
On the right, select "Allow all actions and reusable workflows".
2023-01-18 09:23:36 +01:00
2023-03-09 12:29:25 +01:00
Once workflows are enabled you can goto “Actions”.
On the left, select "Flutter Nightly Build". Then on the right, click "Enable workflow".
2023-07-14 14:37:01 +02:00
Finally you can click "Run workflow" to build the RustDesk clients for all of the supported platforms.
2023-01-18 09:23:36 +01:00
## Enable upload permissions for workflows
2023-02-03 23:19:24 +01:00
On your fork you just created goto "Settings -> Actions -> General".
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Scroll down and under Workflow permissions enable "Read and write permissions".
2023-01-18 09:23:36 +01:00
## Download your built packages
2023-07-13 13:06:05 +02:00
After the workflow is done running you can download the packages it built.
2023-01-18 09:23:36 +01:00
2023-02-03 23:19:24 +01:00
Goto the main page of your fork, on the right click "Releases". The packages you just built will show up under "Nightly".