Import a repository from GitHub
Backup a GitHub repository on Protocol.Land.
Backing up your repository on Protocol.Land ensures that the longevity of your code is safeguarded and you have uninterrupted access to it.
Follow these steps to backup your GitHub repository 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.
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