Skip to content

Website Deployment

Fork the repository and configure GitHub to publish your website

This chapter will guide you through the deployment of your Moire website, including Forking the repository, enabling Actions, configuring Pages, and generating a Token.

  1. Open the Moire Repository

  2. Click the Fork button in the top right corner

  3. Click Create fork

  1. Go to your Forked repository

  2. Click the Actions tab at the top

  3. Click the green button: I understand my workflows, go ahead and enable them

  1. On the Settings page, find Pages in the left menu

  2. Under “Build and deployment”, select GitHub Actions for Source

  3. No other configuration is needed; you can return after this

You need to generate a GitHub Personal Access Token (PAT) so the Shortcuts can upload notes to your repository.

  1. Open GitHub Developer Settings

  2. Click Generate new token

  3. Fill in the Token info:

    • Token name: Moire Sync (or any name)
    • Expiration: Recommended to choose 90 days or longer
    • Repository access: Select Only select repositories, then choose your Forked Moire repository
  4. Configure permissions under Permissions:

    PermissionLevelDescription
    ContentsRead and writeFor uploading note files
    WorkflowsRead and writeFor triggering build processes
  5. Click Generate token

  6. Copy and save the generated Token

Fine-grained PAT format looks like this:

github_pat_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

After generating the Token, let’s verify if the deployment was successful!