Import from GitHub, push changes and build on GitHub

Import a repository as an app, push your changes back to GitHub, and set up a build on GitHub for a React project with a workflow you add yourself. About forty-five minutes.

Goal: run a GitHub project as an app, push code back, and build a Vite and React project on GitHub. Time: about forty-five minutes. Plan: Studio. Before you start: a GitHub account and a repository. Part 1 needs a repository with an index.html at its root; part 3 needs a Vite and React project with a package.json and a package-lock.json.

Part 1: import a static repository

  1. Create an app note and choose Import from GitHub in the toolbar.

  2. For a public repository, paste its address. For a private or organisation repository, choose Connect GitHub, share the repository with SeeMyNotes on GitHub and return.

  3. Open Advanced only if the entry is not index.html or you want a branch.

  4. Start the import. SeeMyNotes downloads, checks and publishes a version.

Import from GitHub.

If screening flags the version, review the report and publish it anyway with a reason, or fix the repository and import again. Importing a private repository into an already public app asks you to confirm.

Part 2: push changes

  1. Edit the app in the code view and save with Cmd+S (Ctrl+S).

  2. Open the GitHub panel, choose the repository, enter a branch name and a commit message and choose Push to GitHub.

  3. Choose View the commit to see the commit on GitHub.

Pushing sends the app's live code only. Variables, secrets, connections and data stay in SeeMyNotes. A push refuses code that contains the value of one of your secrets.

Push to a repository and branch.

Part 3: build a React project on GitHub

  1. Open the GitHub panel on a Vite and React repository. SeeMyNotes says it needs a build and shows the detected tool.

  2. Choose the Folder the build writes to: dist for Vite.

  3. Choose Review the workflow file and read the workflow file. It installs with npm ci, runs npm run build and publishes the output to a branch named seemynotes-build.

  4. Choose Create the file on GitHub. On GitHub, commit the file to .github/workflows/seemynotes-build.yml. If the address is too long for GitHub, choose Copy the file and paste it.

  5. Back in SeeMyNotes, choose I added it: check again.

  6. Push a commit to your source branch. Watch the workflow in the repository's Actions tab.

  7. When it has finished, choose Import the latest build.

Review the workflow, then add it yourself.

If SeeMyNotes lists a blocker, fix it: add a build script, commit package-lock.json, use npm, and keep your dependencies to catalog packages.

Part 4: update later

After new commits, reopen the panel. When it says A newer commit is not built yet, wait for the workflow, then choose Update the app. Updates are never automatic.

Result

A GitHub project running as an app, a way to push changes back, and a build that runs only on GitHub, under your control.

Next steps

Related pages