01 · ACCOUNT & APPLICATION
Register your application once.
Sign in with your registered SocketJack account. Ask an administrator to enable installer publishing and register your product under that account, including its signing policy. Keep the same product ID in the manifest, trusted workflow and future updates; changing a display name does not create a new product.
Open Trusted publishing to review your products and save a GitHub workflow policy. Use these fields for the supplied tag workflow:
| Field | Value |
|---|---|
| Product ID | Your registered product ID, such as example.app |
| Repository ID / owner ID | The repository's and owner's actual numeric GitHub IDs |
| Workflow path | OWNER/REPOSITORY/.github/workflows/publish-installer.yml |
| Allowed refs | refs/tags/v* |
| Environment | installer-publishing |
The workflow path has no @ suffix for this tag policy. A tag such as v2026.10.29.1 authorizes only package version 2026.10.29.1. Forks, branch runs and a different package version do not match that policy. If you use a reusable workflow, register its separate exact full reference; prefer a reviewed commit SHA.
To look up public repository IDs with GitHub CLI, use gh api repos/OWNER/REPOSITORY --jq '{repositoryId: .id, repositoryOwnerId: .owner.id}'. For a private repository, use your normal authorized GitHub connection. Copy the numeric results into the policy form.
02 · PRIVACY & TERMS
Include both actual documents.
Open Application documents, or use the desktop Build & publish → Privacy & terms editor. Type or paste your Privacy Policy and Terms and Conditions, optionally import UTF-8 .txt, .md or .markdown files, and save them for your product. Saved drafts can autofill the publisher editor.
Both texts must be nonblank and each must fit within 65,536 UTF-8 bytes. New packages embed the actual content, public URL, file name, media type, byte count and checksum inside the signed manifest. A link or a separate text file alone does not meet this requirement.
heirowInstaller.Cli pack installer.json --source published --output app.hinst --legal-documents legal-documents.json --sign-key PATH_TO_EXISTING_SIGNING_KEYlegal-documents.json contains your privacyPolicy and termsAndConditions authoring objects. See the legal document format and CLI examples. File import options are also available. Use your existing signing process; keep private signing keys out of source and workflow logs. For an authorized hosted-signing draft, follow the product's hosted-signing policy instead.
For SocketJack publication, use these public URLs with your exact product ID:
https://socketjack.com/heirowInstaller/PrivacyPolicy/APPID
https://socketjack.com/heirowInstaller/TermsAndConditions/APPIDSaving edited text does not change an already signed installer or its live published documents. Rebuild and sign the target with the saved text before publishing it. An incremental update's new signed target must include both documents, even when its base is an older package.
03 · GITHUB ACTIONS
Connect your existing release build.
Copy the reviewed workflow template to .github/workflows/publish-installer.yml in your application repository. Configure the installer-publishing GitHub environment and its release protections. Install a verified heirowInstaller CLI distribution through your existing tooling before its publish step.
Replace the template's Build-InstallerDraft.ps1 call with your real release script. It must build the requested numeric version and produce artifacts/draft.hinst with the required legal text and the registered signing policy. The sample build script name is a placeholder.
name: Publish installer
on:
push:
tags: ['v*']
permissions:
contents: read
jobs:
publish:
runs-on: windows-latest
environment: installer-publishing
permissions:
contents: read
id-token: write
concurrency:
group: installer-${{ github.repository }}-${{ github.ref }}
cancel-in-progress: false
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
# Install your verified CLI and application's build dependencies here.
- name: Bind the package version to the tag
shell: pwsh
run: |
if ($env:GITHUB_REF_NAME -cnotmatch '^v([0-9]+(?:\.[0-9]+){1,3})$') {
throw 'Use a numeric version tag.'
}
"INSTALLER_VERSION=$($Matches[1])" >> $env:GITHUB_ENV
- name: Build the application installer draft
shell: pwsh
run: ./tools/Build-InstallerDraft.ps1 -Version $env:INSTALLER_VERSION -Output ./artifacts/draft.hinst
- name: Submit and wait for activation
shell: pwsh
run: heirowInstaller.Cli publish ./artifacts/draft.hinst --publisher https://socketjack.com --github-oidc --wait-for-activationOnly the publishing job needs id-token: write. Ordinary input must already be signed; only an explicitly registered protected draft with hostedSigning: true may be unsigned. OIDC authenticates the workflow and does not sign arbitrary unsigned packages. The CLI requests a fresh GitHub OIDC identity for https://socketjack.com/installer-publisher and exchanges it for a short-lived credential bound to this package. Do not add a SocketJack password, exported browser session or durable publisher token to this workflow. OIDC proves workflow identity; the registered product and workflow policy still control permission.
GitHub explains OIDC claims and permissions, workflow triggers and pinning actions and securing release workflows. The full template also supports manual runs; a manual branch run needs its own exact authorized ref and is not covered by the tag policy above.
04 · SUBMIT & REVIEW
Publish an immutable version.
Commit your completed application changes, workflow and document inputs to their intended repository. After your release checks pass, push a new numeric version tag:
git tag v2026.10.29.1
git push origin v2026.10.29.1Use your own next version. Watch the Actions job and its publication receipt. A submission can be pending, activated or rejected. The wait option polls that receipt for up to 15 minutes; a timeout leaves the server submission pending for review.
The receipt's uploadedPackageSha256 identifies your input. Its final sha256 identifies the sealed output and can differ after hosted preparation. Repeating the same version with the same input can resume its receipt. Different input under the same version conflicts: correct the build and publish a new immutable version.
This workflow submits to SocketJack. Uploading assets to a GitHub Release is a separate step in your repository's release process. Verify the final activated bytes before distributing them elsewhere.
05 · INSTALLERS & FILE UPDATES
Deliver the right artifact.
| Artifact | Purpose |
|---|---|
.hinst | Signed full package. Retain it as the immutable source for future file updates. |
Setup.exe | Standalone installer containing the same verified full package and a trusted launcher, for fresh installs. |
.hupd | Signed file update from one exact installed base to a new signed target. It does not replace the fresh-install download. |
For an ordinary product, publish the full package before adding its same-version standalone carrier, then publish each supported base-to-target file update. Create and verify these with the CLI:
heirowInstaller.Cli bundle app.hinst --launcher heirowInstaller.exe --output Setup.exe
heirowInstaller.Cli build-update app.hinst --base previous.hinst --output app-from-previous.hupd --sign-key PATH_TO_EXISTING_SIGNING_KEY
heirowInstaller.Cli verify app.hinst --trust-key EXPECTED_PUBLISHER_SHA256 --require-signature
heirowInstaller.Cli verify-update app-from-previous.hupd --trust-key EXPECTED_PUBLISHER_SHA256Use the released trusted launcher and your established signing key. Sign in to the website publisher or desktop publisher to upload supported full packages, standalone installers and file updates through the appropriate publishing lane. GitHub workflow submission, protected delivery and ordinary file-update uploads have different permissions; a CI identity is not an administrator session.
Publishing protected components and a complete native app
An authorized hosted-signing draft may set hostedSigning: true. A small component-only draft must also set preparationOnly: true; it cannot be installed as the complete application. After approval, embed the exact sealed components and signed bootstrap in the full native application, remove the preparation-only marker, and sign with the registered outer publisher.
Final sealed native delivery uses the explicit native administrator --sealed-delivery lane with the existing outer trust pin. It accepts a complete .hinst or standalone .exe, and rejects browser cookies and scoped CI credentials. Send file updates through the ordinary .hupd publisher. The trusted publishing reference explains descriptors, delegation and these separate steps.
06 · RELEASE VERIFICATION
Check what users receive.
- Confirm the receipt identifies the intended product, version and final artifact checksum.
- Check the application's current native version and download link in the application catalog. Administrators can compare candidates, exact publication links and history in the installer overview.
- Read both public document URLs and confirm they contain the text embedded in the activated target.
- Download the standalone installer and verify its checksum and expected publisher. Test a fresh installation using your normal release acceptance process.
- Test each advertised file-update base with heirowUpdater, then confirm the installed version, repair behavior and application startup.
Keep your input, source commit, publication receipt and final checksums together. Report a version as available only after the intended native feed and download actually serve it.
HELP
When publishing stops.
- “Workflow is not authorized” or HTTP 403
- Check publisher permission, registered product, numeric repository and owner IDs, exact workflow path, environment and tag-to-version match. Confirm the publishing job grants
id-token: write. A local terminal does not provide a GitHub Actions identity. - Documents are missing or differ
- Review both saved drafts, autofill or supply them to the builder, then rebuild and sign. Resubmitting the old signed file cannot include newly saved text.
- A submission remains pending
- Review its status in Trusted publishing or the administrator installer overview. A CLI timeout does not approve, cancel or publish it. Preserve the receipt and resume the same input when appropriate.
- The same version conflicts
- Check the uploaded input digest. Do not replace an immutable version with different bytes; build the next version.
- An approved candidate is absent from downloads
- Check whether it is only a component preparation or review approval. Complete and promote the native installer through its authorized lane, then verify the current pointer and artifact checksum.
- An update has no matching base
- Build the transition from the exact signed full package installed by that version. Retain old full packages; a similarly named file is not evidence of a matching base.