[setup][s]: move deploy tutorial under learn section.

This commit is contained in:
Anuar Ustayev
2022-01-16 12:04:17 +06:00
parent c1cc43933f
commit 0fa7612961
3 changed files with 14 additions and 22 deletions

View File

@@ -68,5 +68,11 @@ Lets check to see if its working. Open http://localhost:3000 from your bro
## Next steps
Learn how to use Portal.js for your frictionless dataset or CKAN catalog:
* Learn how to build a portal for a single frictionless dataset - [learn/single-frictionless-dataset](/learn/single-frictionless-dataset).
* Learn how to use Portal.js as a frontend for CKAN - [learn/ckan](/learn/ckan).
* Learn how to build a portal for a single frictionless dataset - [learn/single-frictionless-dataset](/learn/single-frictionless-dataset)
Learn how to deploy your data on GitHub using Portal.js:
* Deploy to GitHub Pages - [learn/deploy-to-gh-pages](/learn/deploy-to-gh-pages).

View File

@@ -1,10 +1,10 @@
# Publishing data on Github using Portal.js and Github pages
# Deploying data on Github using Portal.js and Github pages
---
**Use Case:**
---
You have some data in a Github repo and you'd like to publish it online using "portal" so that it is easy for others to view, explore and use.
You have some data in a Github repo and you'd like to deploy it online using "portal" so that it is easy for others to view, explore and use.
---
Here we show how you can use portal.js plus github actions to publish your dataset in minutes and keep it updated as you make changes.
Here we show how you can use portal.js plus github actions to deploy your dataset in minutes and keep it updated as you make changes.
The example focuses on the case of a [Frictionless dataset][fd] but it works for any dataset type supported by portal.js.
@@ -16,18 +16,18 @@ We provide three options on how to do this and recommend using the first one unl
[fd]: https://frictionlessdata.io/data-packages/
## Publish datasets automatically by setting up a github actions script
## Deploy datasets automatically by setting up a github actions script
The github actions below will automatically build and publish a single page, Frictionless dataset to `gh-pages` branch. Follow the steps below to achieve this:
The github actions below will automatically build and deploy a single page, Frictionless dataset to `gh-pages` branch. Follow the steps below to achieve this:
1. Create a secret so we can automatically commit to gh-pages branch (see below)
2. Set up the github action to build portal to your dataset and publish it (see below)
2. Set up the github action to build portal to your dataset and deploy it (see below)
3. Wait for your page to build and then setup github pages (see below)
4. View the results: visit `https://<your github username>/github.io/<dataset repo name>/`
### Step 1
In the dataset repository you want to publish, create a github secret with the name `PORTAL_REPO_NAME` and the value should be the name of the repository.
In the dataset repository you want to deploy, create a github secret with the name `PORTAL_REPO_NAME` and the value should be the name of the repository.
See steps on creating a secret [here](https://docs.github.com/en/actions/reference/encrypted-secrets)

View File

@@ -56,20 +56,6 @@ export default function Home() {
</p>
</a>
<a
href="/publish/"
className="p-6 mt-6 text-left border w-96 rounded-xl hover:text-blue-600 focus:text-blue-600"
>
<h3 className="text-2xl font-semibold"> Publish</h3>
<p className="mt-4 text-xl">
Learn how to publish data stored on Github using Portal.js and Github Pages.
</p>
</a>
{/* Use code below to create an invisible dummy box on the right of Publish box for a good UI look. */}
<a
className="p-6 mt-6 text-left w-96 rounded-xl hover:text-blue-600 focus:text-blue-600"
>
</a>
</div>
</main>
</Layout>