Mistake on this page?
Report an issue in GitHub or email us

Publishing code

Publishing copies your program or library from your private workspace to your public Arm Mbed website profile.

The public copy of your repository is the home of your project on Mbed. This is the place for:

  • Documentation about your project.
  • Guides on how to use it.
  • Discussion by users of your project.

If you want to share your work:

  1. Click Publish from the right-click context menu in the Arm Mbed Online Compiler:

    Using the Online Compiler to publish a program

  2. If you have uncommitted changes, you will be prompted to commit your work.

  3. If this is the first time you have published this program or library, you will see a dialog box like this one:

    Completing the dialog box with a description of the program

  4. Enter a description of what you are publishing.

  5. Select a Publish in option. You have the choice to publish your repository to your user account or to a team that you are a member of. When publishing to a team, all members of that team will be able to collaborate on your work with the permissions managed by the team as well as the repository.

    Note: You must be a member of a team before trying to publish to it. You can Send a Join Request on the team's homepage if it has public enrollment enabled.

  6. Select Visibility: This controls who can see your repository. There are three options:

    • Public: For a normal repository. It will be visible in the site code listings and in your personal profile. It's readable by everyone but only writable by you (or people you add).

    • Public (unlisted): A subtype of public; the repository is public and anyone can view it, but it's not advertised in any listings. Users will need to know the URL of the repository to be able to reach it.

    • Private: Only you (the owner), or users you add, can see and access the repository. To allow users to see it, use the repository's Admin settings. Users you don't add will not be able to see the repository, even if they have the URL.

  7. Click OK.

That copies your private repository to the Mbed public website, where other users can import it. It also copies a reference to any libraries you used in your code; if those libraries are not published, you will be prompted to publish them.

The end result is that a published repository is an exact copy of your program or library as it exists in your workspace. This ensures that the code works as expected when another user imports your code.

The public copy of the program on your Mbed website profile is identical to the one from your private workspace

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.