Skip to content

GitHub Actions

Totem apps, by default, are automatically configured to build and deploy when pushed to GitHub, utilizing GitHub Actions. Configuration for GitHub Actions is stored in the .github directory.

Build-time Environment Variables

When the app is being built within GitHub Actions, the following environment variables are available for use:

  • TOTEM_APP: The global name of the application being built, as defined by the name property in the config file.
  • TOTEM_TARGET: The name of the target that the application will be deployed to, as defined by the targets.<name> property in the config file.
  • TOTEM_BRANCH: The name of the branch currently being built, as defined by the build.branches.<name> property in the config file.
  • TOTEM_APP_ID: The ID for the application/target/branch combination being built. This will be unique for each combination.