Skip to main content
An application keeps immutable versions of its packaged files, called artifacts. Use release history to identify a version, give it a readable name, and decide which version serves the live URL. Staging saves an artifact without changing the live version. Deployment builds and runs the selected artifact before switching the live URL.

Athena 101 lesson: Publish it as an Application (broader walkthrough)

Review and name versions

  1. Open your application and select Deployment.
  2. Review Live Deployment to identify the current release.
  3. Review Version History for versions that have been deployed. Versions also have an ordinal label such as v1 and a separate version ID.
  4. Hover the version’s label and select the pencil (Rename).
  5. Enter a name and select Save name, or press Enter. Clear the name to return to the numbered label.
A name changes how the version appears. It does not change its ID, number, artifact, or deployment target. The numbered label remains visible beside a custom name. Names can contain up to 120 characters. A name can’t look like a version reference, such as v2 or 3, or use the words live, published, production, latest or newest.

Deploy from GitHub

The application’s owner can connect it to a GitHub repository, so every push to a branch deploys it. Use the Git section of the Deployment tab.
  1. Connect your own GitHub account in Integrations first. The repository picker lists only repositories you connected with your own account.
  2. In Git, choose the repository and the branch to deploy (the repository’s default branch is filled in). Optionally set a root directory; the default is the repository root. The root directory needs an athena-application.toml.
  3. Select Connect.
After connecting:
  • Every push to the branch builds and deploys a new version. A push from someone who isn’t a workspace member with edit access to the application, and isn’t an allowed bot, waits until the owner approves the deploy.
  • Every pull request against the branch gets a preview version with its own preview link. Pull requests from forks never build automatically. Previews start without the application’s Secrets. Turn on Preview Secrets to give previews the Secrets’ keys with stand-in values; a preview never gets a real Secret value. You can turn pull request previews off in the section.
  • Redeploy deploys the head of the branch again. Disconnect stops pushes from deploying and pull requests from getting previews.
Editors who aren’t the owner can see the connection but can’t change it. Chat-driven staging and the steps below still work on a connected application.

Stage and deploy changes

  1. In a session with the Applications toolkit, ask Athena to package your changes without deploying them. The stage_application tool saves an immutable version without moving the live URL.
  2. Open Deployment and review the version under Not deployed yet.
  3. Select Deploy this version, then confirm with Deploy.
  4. Wait for deployment and the health check to finish. Confirm the selected version appears under Live Deployment.
If you want to package and deploy in one task, ask Athena to release the application. The release_application tool performs both operations.

How to name a version, deploy a staged version, and roll back to an earlier release

  1. Open Deployment
  2. Check what is live
  3. Name the staged version
  4. Deploy this version
  5. Wait for the health check
  6. Roll back to an earlier release
  7. Check Live Deployment

Roll back a release

Saved application artifacts and a live URL pointer, with deployment or rollback rebuilding and switching only after a successful health check.

Deployment and rollback switch the live URL only after the chosen artifact passes its health check.

  1. Find an earlier release in Version History.
  2. Select Roll back to this and confirm with Roll back.
  3. Wait for the selected artifact to rebuild and pass its health check.
  4. Check Live Deployment and open the live application to review the result.
Rollback is not instant. It rebuilds from the saved artifact in a fresh runtime. The existing live app usually continues serving during the build. Applications on persistent shared storage stop while the replacement is built and checked. The live URL switches after the health check passes. If that check fails, the published version stays unchanged.

Model access, environment variables and Secrets

A published Application does not get an Athena model-access key. The AI key and lifetime budget described in Computer spending belong to the Computer and do not carry over when the app is copied into an Application, so an Application also has no Athena spend cap. An Application’s environment variables are the keys of the Secret assets linked to it, plus three that Athena sets itself. Ask Athena to link Secrets when it stages or releases a version; later deploys and rollbacks reuse the same links. Only Secrets owned by the person staging or deploying are used. Previews never get real Secret values (see Preview Secrets above). Athena sets these on every build and start of the app, in previews too: ATHENA_ENVIRONMENT and ATHENA_API_URL are not secrets, and every app in a deployment gets the same values. Use them instead of writing an address into your code, so the same version works when it is copied to another Athena. If Athena cannot tell a value, it leaves that variable out rather than guess, so check that it is set before you use it. A Secret key named ATHENA_ENVIRONMENT or ATHENA_API_URL is ignored. Don’t list these names, or PORT, under [env] required in athena-application.toml: that list is checked against linked Secrets only. An app already running gets the two variables at its next deploy or rollback. Waking from sleep may bring back the environment it last started with. To call a model from an Application, put your own provider API key in a Secret asset and link it. That usage is billed by the provider and is not capped or reported by Athena.

Limits

You need edit permission to rename or deploy versions. New builds, deployment, and rollback also require application deployment to be available in your environment. You can read existing release history while new releases are paused.