# How to publish an app on GitHub Pages

The repository is made from UOR-Foundation/template. Its Pages workflow runs the gate and publishes the app only when every claim holds.

**Figure: The steps, in order.** 5 steps. Each section below is one of them.

| Step | What happens |
| --- | --- |
| 1. Name the repository in the prompt | repository: OWNER/prism-NAME |
| 2. Download the app | prism-NAME.zip |
| 3. Create the repository | from the template, with Pages |
| 4. Clone it | and remove the template app |
| 5. Unpack the app and push | the workflow proves and serves it |

## 1. Name the repository in the prompt

Set repository to OWNER/prism-NAME. The schema says: owner/name of the repository the app will live in, for its page and links.

NAME is app.name in the prompt.

## 2. Download the app

Build the prompt in the builder (../../start/index.md) and press Download .zip. The download is prism-NAME.zip.

## 3. Create the repository

```
gh repo create OWNER/prism-NAME --template UOR-Foundation/template --public
gh api -X POST repos/OWNER/prism-NAME/pages -f build_type=workflow
```

## 4. Clone it

```
git -c core.autocrlf=false clone https://github.com/OWNER/prism-NAME.git
cd prism-NAME
git rm -q app/src/Contract.lex.tex crates/conformance/tests/contract.rs features/suites/contract.feature
```

## 5. Unpack the app and push

```
unzip -o ../prism-NAME.zip
git add -A && git commit -m "Build the app from its prompt" && git push
```

## Before you push

- [How to verify an app before you publish it](../../guides/verify/index.md): run the same gate on your own machine first.
