1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-544: change request with no subject merged in GitBook

This commit is contained in:
Veronica Manuel 2023-06-16 13:47:25 +00:00 committed by gitbook-bot
parent ae3524bb73
commit d1bfc2a0a8
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -4,41 +4,45 @@ description: How to use Github for your NFT assets
# Github # Github
**Github** ### **Github**
GitHub can be used to host and share files. This allows you to easily share and collaborate on files, track changes using commits, and keep a history of updates. GitHub's hosting capabilities enable you make your content accessible on the web. GitHub can be used to host and share files. This allows you to easily share and collaborate on files, track changes using commits, and keep a history of updates. GitHub's hosting capabilities enable you make your content accessible on the web.
**Prerequisite** ### **Prerequisites**
Create an account on [Github](https://github.com/). Users might also be asked to provide details and billing addresses that are out of this tutorial's scope. Create an account on [Github](https://github.com/). Users might also be asked to provide details and billing addresses that are outside of this tutorial's scope.
**Step 1 - Create a new repository on GitHub or navigate to an existing repository where you want to host your files.** **Step 1 - Create a new repository on GitHub or navigate to an existing repository where you want to host your files.**
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.58.20.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.58.20.png" alt=""><figcaption><p>If you are creating a new repository, then click on the green New button.</p></figcaption></figure>
Fill in the details. Make sure your Repo is publicly accessible. Fill in the repository details. **Make sure your Repo is public.**
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.59.38.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.59.38.png" alt=""><figcaption></figcaption></figure>
### Host Your File
**Step 2 - Upload a file** **Step 2 - Upload a file**
Go to your Repo in Github and above the list of files, select the Add file dropdown menu and click Upload files. Alternatively you can use version control to push your file to the Repo. Go to your repo in Github and above the list of files, select the Add file dropdown menu and click Upload files. Alternatively, you can use version control to push your file to the repo.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.50.27.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.50.27.png" alt=""><figcaption></figcaption></figure>
To select the files you want to upload, drag and drop the file or folder, or click choose your files. To select the files you want to upload, drag and drop the file or folder, or click 'choose your files'.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.51.14.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.51.14.png" alt=""><figcaption></figcaption></figure>
In the "Commit message" field, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. In the "Commit message" field, type a short, meaningful commit message that describes the change you made.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.54.29.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.54.29.png" alt=""><figcaption></figcaption></figure>
Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. Below the commit message field, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, then you should choose to create a new branch for your commit and then create a pull request.
After you make your commit (and merge your pull request, if applicable), then click on the file.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.56.01.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 07.56.01.png" alt=""><figcaption></figcaption></figure>
**Step 3 - Get the Raw version of your file** **Step 3 - Get the RAW version of your file**
To use your file on the Market **you need to use the raw url of the asset**. Also, make sure your Repo is publicly accessible to allow the market to use that file.&#x20; To use your file on the Market **you need to use the raw url of the asset**. Also, make sure your Repo is publicly accessible to allow the market to use that file.&#x20;
@ -46,13 +50,15 @@ Open the File and click on the "Raw" button on the right side of the page.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.02.25.png" alt=""><figcaption><p>Click the Raw button</p></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.02.25.png" alt=""><figcaption><p>Click the Raw button</p></figcaption></figure>
Copy the link in your browser's URL - it should begin with "https://raw.githubusercontent.com/...." Copy the link in your browser's URL - it should begin with "https://raw.githubusercontent.com/...." like in the image below.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.05.41.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.05.41.png" alt=""><figcaption></figcaption></figure>
**Step 4 - Publish the asset using the Raw link** **Step 4 - Publish the asset using the Raw link**
Now, copy and paste the Raw Github URL into the Publish page in the Ocean Marketplace. Now, copy and paste the Raw Github URL into the File field of the Access page in the Ocean Market.
<figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.08.12.png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/Screenshot 2023-06-16 at 08.08.12.png" alt=""><figcaption></figcaption></figure>
Et voilà! You have now successfully hosted your asset on Github and properly linked it on the Ocean Market.