# Uploading Pool Metadata to GitHub Pages

### **To host the file containing metadata for your pool on GitHub Pages:**

1. Sign up or login to your [GitHub](https://github.com) account.
2. [Create a new public repository](https://github.com/new) named *username*.github.io, where *username* is your username (or organization name) on GitHub. **Shorter the better.**

<figure><img src="https://content.gitbook.com/content/9KF47A90HRvVnkm4oDNF/blobs/PmxeDw8cxDdJfHXQV4oz/github-name.png" alt=""><figcaption></figcaption></figure>

3. Click Get started by "**creating a new file**" under Quick setup.<br>

   <figure><img src="https://content.gitbook.com/content/9KF47A90HRvVnkm4oDNF/blobs/OtVouedTLHMrDQs3cPpU/create-new-file.png" alt=""><figcaption></figcaption></figure>
4. Enter your file name as **md.json** and paste in your JSON content.

<figure><img src="https://content.gitbook.com/content/9KF47A90HRvVnkm4oDNF/blobs/Z6t1neniRT3rbCf2rGpO/md.png" alt=""><figcaption></figcaption></figure>

5. Click **Commit Changes...**

<figure><img src="https://content.gitbook.com/content/9KF47A90HRvVnkm4oDNF/blobs/mJPltjhjg4XNvHxTbCzD/commit.png" alt=""><figcaption></figcaption></figure>

6. If everything worked properly, your pool metadata is now hosted at URL:

```
https://USERNAME.github.io/FILE
```

{% hint style="info" %}
Example URL: <https://coincashew.github.io/md.json>
{% endhint %}

{% hint style="warning" %}
Ensure the URL is less than 64 characters. If too long, pick a shorter github username or shorter json file name.
{% endhint %}

7. In your stakepool registration transaction, set the value of the `--metadata-url` parameter to this URL.
8. On your block producer node, download your JSON file using the URL with `wget` command:

```bash
cd $NODE_HOME
wget -O md.json <your github pages URL>
```

{% hint style="warning" %}
Note that it can take up to 10 minutes for changes to your site to publish after you commit changes.
{% endhint %}

9. As a sanity check, check the contents of your JSON file.

```bash
cat md.json
```

10. On your block producer node, generate the updated pool metadata hash.

```bash
cardano-cli stake-pool metadata-hash --pool-metadata-file md.json > poolMetaDataHash.txt
```
