Import a repository from GitHub
Backup a GitHub repository directly to an organization on Protocol.Land.
Backing up your repository to an organization you own on Protocol.Land helps you group your repositories you import from Github with managed access control.
Follow these steps to backup your GitHub repository to an organization on Protocol.Land:
Navigate to your GitHub repository and go to the "Settings" tab.
Under "Secrets and variables," select "Actions" then click "New Repository Secret."
Add a new secret with "Name" as “WALLET”, paste your Arweave wallet's JWK into the "Secret" field, and click "Add secret."
Go to the "Actions" tab of your repository.
Click "New workflow" if you have existing actions, or follow the prompt to "Get started with GitHub Actions" if it's your first time.
Choose to "Set up a workflow yourself."
In the
.yml
file that appears, copy and paste the provided YAML code and commit the changes. This code includes crucial steps, such as checking out all branches and setting up node environments before syncing to Protocol Land.
The code is set to automatically execute with every push to the
main
branch. For manual execution, modify theon:
section to includeworkflow_dispatch:
.If desired, you can adjust the workflow to only sync the main branch by commenting out the 'Checkout all branches' section.
Navigate to your organization page on Protocol.Land.
Under "Repositories" tab you should now see the imported repo.
Add published badge to your Github repo
When you sync your GitHub repo with Protocol.Land, proudly display the "Published on Protocol.land" badge in your README. Use the below template and replace <REPO_ID> with your Protocol.Land repo ID:
Last updated