Skip to content

ci: deploy and install the app from a manual GitHub Actions workflow - #5

Merged
shenxianpeng merged 1 commit into
mainfrom
ci/deploy-workflow
Nov 25, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
ci/deploy-workflow

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Build, deploy and install now run from GitHub Actions instead of a laptop. The new Deploy workflow (.github/workflows/deploy.yml) follows the same shape as the keelapps Forge deploys:

  • Started by hand from the Actions tab (workflow_dispatch), because deploying is a decision. Inputs:
    • environment: development, staging or production
    • install: none, install (first time on a workspace) or upgrade (after a scope change)
    • workspace: e.g. bitbucket.org/my-workspace
  • Steps: npm ci, write the app id into manifest.yml, npm run build, forge lint, forge deploy --non-interactive, and optionally forge install --confirm-scopes --non-interactive [--upgrade].
  • App id: manifest.yml keeps the placeholder, so a fork cannot deploy over the real app. The workflow writes in the FORGE_APP_ID repository variable and stops with an error when it is missing or malformed.
  • Token exposure: FORGE_EMAIL and FORGE_API_TOKEN are passed only to the Forge steps, so dependency install scripts never see the token.
  • Runner: Forge CLI pinned to 16.0.0 on Node 24; the CLI rejects the Node 22.23.1 that 22.x resolves to. One deploy at a time per environment.

The README's Deploying section now describes the one-time setup and this workflow; deploying from a laptop is one line at the end.

Setup before the first run

In Settings > Secrets and variables > Actions:

Kind Name Value
Variable FORGE_APP_ID the ari:cloud:ecosystem::app/... that forge register printed
Secret FORGE_EMAIL the Atlassian account's email
Secret FORGE_API_TOKEN an API token from id.atlassian.com > Security > API tokens

Checked

  • actionlint is clean.
  • The app id substitution was tried on manifest.yml.
  • forge install flags were checked against the Forge CLI 16.0.0 source: the product name Bitbucket and a bitbucket.org/<workspace> site are accepted.
  • On the current main (pyodide 314.0.8 after the Dependabot bump), 162 tests pass and npm run build succeeds.

Not run yet: the workflow itself, which needs the secrets above.

The app id stays a placeholder in manifest.yml and comes from the
FORGE_APP_ID repository variable, so a fork cannot deploy over the app.
@shenxianpeng
shenxianpeng merged commit 18fa769 into main Nov 25, 2026
1 check passed
@shenxianpeng
shenxianpeng deleted the ci/deploy-workflow branch November 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant