Skip to content

GitHub Actions

Copilot edited this page Nov 23, 2026 · 1 revision

This page describes every workflow in .github/workflows/. Maintainer procedures are in Releasing, and the local Desktop builds command is in Cross-Platform Builds.

Overview

Workflow (file) Name in Actions Runs on Purpose
quality-checks.yml Release quality checks PRs to main; pushes to main, development, documentation Actionlint and shell and repository quality checks
frontend-tests.yml Frontend tests PRs to main; pushes to main, development UI and i18n tests, integration tests, Playwright browser tests
rust-tests.yml Rust tests PRs to main; pushes to main, development Rust checks, clippy, and tests
security-audit.yml Security audit PRs to main; pushes to main, development; weekly; manual Dependency audits
macos-updater-bundle-smoke.yml macOS updater bundle smoke Pull requests; manual Builds unsigned updater-enabled macOS bundles
release-pr-macos-updater-gate.yml Release PR macOS updater bundle gate PRs to main (pull_request_target) Required gate for release PRs
release-preparation.yml Release preparation Manual Opens the release PR
windows-release-workspace.yml Windows release workspace PRs to main touching release files; manual Verifies the normalized Windows workspace
signed-release.yml Signed updater release v* tags Builds signed packages and creates the draft release
updater-build.yml Build signed updater packages Reusable Six-target signed updater builds
desktop-builds.yml Desktop builds Manual Six-target unsigned installers for a pinned commit
store-msix.yml Store MSIX packages Reusable Builds x64 and ARM64 Store packages and the bundle
store-submission.yml Store submission packages After a signed release run Verifies published assets and submits to Partner Center
store-metadata.yml Store metadata Manual; after Store submission packages Syncs the Partner Center listing
store-base-metadata.yml Store base metadata Manual; from Store metadata Refreshes store-assets/base-metadata.json
pages.yml GitHub Pages Pushes to main changing docs/; manual Publishes docs/ to GitHub Pages

Reusable workflows are called by other workflows and are not started directly. Actions names listed above are the names of the checks in the UI.

Quality and test checks

Release quality checks

  • Triggers: pull requests to main, pushes to main, development, and documentation, and workflow_call.
  • Jobs: actionlint runs raven-actions/actionlint; quality runs pnpm lint:shell and the repository quality gates.
  • Required checks: actionlint and quality are required by the Branch default ruleset.

Frontend tests

  • Triggers: pull requests to main, pushes to main and development, and workflow_call.
  • Jobs: UI and i18n runs the UI and i18n tests, installs PowerShell, then runs pnpm test:integration. Playwright browser tests runs the browser tests.
  • Required checks: UI and i18n and Playwright browser tests (see the ruleset in Releasing).

Rust tests

  • Triggers: pull requests to main, pushes to main and development, and workflow_call.
  • Jobs: Rust checks and tests runs the Rust checks and the workspace tests, including the updater suite.
  • Required checks: Rust checks and tests is required by the Branch default ruleset.

Security audit

  • Triggers: pull requests to main, pushes to main and development, a weekly schedule (Monday 05:17 UTC), workflow_dispatch, and workflow_call.
  • Jobs: dependencies runs the Rust and pnpm audits with pinned tools from crates.io.
  • Required checks: dependencies is required by the Branch default ruleset.

Release gates and preparation

Release preparation

  • Trigger: workflow_dispatch with an optional version (YYYY.M.MICRO). Leave it empty to choose the next version.
  • Job: prepare-release updates the version metadata, generates release notes, and opens the release/<version> pull request.
  • Token: the job uses a GitHub App token, not GITHUB_TOKEN, so the pull request triggers the gate below. It needs RELEASE_APP_CLIENT_ID and RELEASE_APP_PRIVATE_KEY.
  • The job stops before it opens a pull request if the remote release ref already exists.

Release PR macOS updater bundle gate

  • Trigger: pull_request_target to main for opened, synchronize, reopened, and edited.
  • Job: Release PR macOS updater bundle smoke is the only macOS-related required check.
  • Behavior: for pull requests from release/*, it waits up to 120 minutes for the matching smoke run. The run must have the same pull request number, head SHA, and base SHA. Both Build x86_64-apple-darwin and Build aarch64-apple-darwin must pass.
  • Trusted inputs: the gate fails any release PR that changes trusted build inputs. These include src-tauri/ sources and manifests, lockfiles, src/, static/, locales/, capability, icon, and resource files, the scripts the smoke run executes, and the smoke workflow. The exact list is in the workflow's code. In package.json, src-tauri/tauri.conf.json, and src-tauri/Cargo.lock, only the version fields that release preparation sets may change.
  • Safety: the workflow never checks out or runs pull request code. Keep it that way when you edit it.

macOS updater bundle smoke

  • Triggers: pull requests (opened, synchronize, reopened, edited) and workflow_dispatch.
  • Jobs: Build x86_64-apple-darwin and Build aarch64-apple-darwin, one per native runner.
  • Behavior: builds an unsigned updater-enabled .app.tar.gz and checks that the archive exists. It uses no production signing secrets, so a passing run does not prove the production signature. Signed-release acceptance needs a native signed run.

Windows release workspace

  • Triggers: pull requests to main that change the signed release, store, or release-preparation workflows and scripts, and workflow_dispatch with an optional request_id.
  • Jobs: Prepare release workspace (x64) and (ARM64) run on native Windows runners.
  • Behavior: prepares and verifies the normalized workspace used by signed releases. It uses no signing secrets and builds no packages. Both jobs must pass before you tag.

Release and signing

Signed updater release

  • Trigger: a push of a v* tag.
  • Jobs, in order:
    1. validate, then the reusable verify-frontend, verify-rust, verify-security, and verify-quality checks.
    2. approve-builds (Approve release builds), protected by the release environment.
    3. build (Build signed updater packages) and store-msix (Build Store MSIX packages) run after approval.
    4. stage (Stage signed updater and Store release) checks the bundle SHA-256 file and its provenance, generates latest.json, and creates the draft release.
    5. approve (Approve accepted draft release), protected by the release environment.
    6. publish (Publish accepted draft release) publishes the draft.
  • The release environment approval releases both the updater build and the Store MSIX build. Nothing is published before approve.
  • Secrets: TAURI_SIGNING_PRIVATE_KEY, plus TAURI_SIGNING_PRIVATE_KEY_PASSWORD if the key is encrypted.
  • Updater targets: only the Linux AppImage is an updater target. The .deb and .rpm packages are built with features: [] and --no-sign.

Build signed updater packages

  • Trigger: workflow_call from Signed updater release.
  • Jobs: Build ${{ matrix.target }} runs six native targets, all in the release environment.
  • Output: signed updater packages and .sig files, uploaded as artifacts for stage.

Desktop builds

Desktop builds

  • Trigger: workflow_dispatch. Run it through pnpm build:all from the dev container, or dispatch it in the Actions tab.
  • Inputs:
    • request_id (required): a unique request ID from pnpm build:all.
    • expected_sha (required): the full commit SHA to build.
    • windows_arm64_symbols (optional, off by default): also uploads a matching PDB for the Windows ARM64 diagnostic installer.
    • previous_store_version (optional): the last published Store version. The build rejects a non-advancing version.
  • Jobs: Build ${{ matrix.target }} runs six isolated native jobs for Linux ARM64 and x64, macOS ARM64 and x64, and Windows ARM64 and x64. Build Store MSIX packages calls the reusable store-msix.yml.
  • Artifacts: NSIS and .deb, .rpm, AppImage, and .dmg outputs, plus one unsigned architecture-specific MSIX per Windows job. Artifacts expire after 14 days.
  • Verification: the local command verifies the request ID, commit, version, target, package completeness, and SHA-256 values. Partial, stale, wrong-target, or modified artifacts are rejected.
  • The workflow never commits or pushes, and it does not publish releases or use the updater configuration. Builds are unsigned and unnotarized.

Store MSIX packages

  • Trigger: workflow_call from Signed updater release and Desktop builds.
  • Jobs: Build Store MSIX ${{ matrix.architecture }} builds the x64 and ARM64 packages on Windows runners, then Build Store MSIX bundle builds the .msixbundle with scripts/package-store-msixbundle.ps1. It attaches a GitHub build provenance attestation to the bundle.
  • Packages use the reserved JerneyNexus.Epikrise identity and the year.month.patch.0 version. They are unsigned. Microsoft signs submitted Store packages.
  • The Store upload does not depend on the six-target NSIS build matrix.

Store submission

Store submission packages

  • Trigger: workflow_run when Signed updater release completes.
  • Environment: store-partner-center for the submit job. Concurrency group store-partner-center-submission allows one submission at a time.
  • Jobs:
    1. Verify Store packages on GitHub Release waits for the published release. It checks the SHA-256 files, provenance manifests, and the bundle attestation, and compares each published asset byte-for-byte with the verified workflow artifacts.
    2. Submit Store bundle to Partner Center waits for approval in store-partner-center. It then runs the version guard (scripts/check-store-version.mjs). The guard fails closed if it cannot read package versions from msstore submission get.
    3. The job uploads the bundle with msstore publish --noCommit, commits it with msstore submission publish, and polls with scripts/wait-store-submission.mjs (about once a minute, up to 300 minutes) until Partner Center reports Published.
  • The job does not change the listing. The new draft keeps the last published listing.
  • Secrets and variables: the AZURE_AD_*, SELLER_ID, and AZURE_AD_CERTIFICATE_* secrets and the STORE_PRODUCT_ID variable are environment-scoped to store-partner-center. STORE_PRODUCT_ID is also defined in store-partner-center-metadata. See Releasing. Some error messages still call it a repository variable (see issue #344).

Store metadata

  • Triggers: workflow_dispatch with two inputs, and workflow_run when Store submission packages completes.
  • Inputs:
    • commit: commits the submission and waits for certification.
    • dry_run: uploads the merged submission, without upload URLs, as an artifact. It changes nothing in Partner Center.
  • Environment: store-partner-center-metadata. It waits for approval before any Partner Center write.
  • Job: Sync Store listing metadata copies text and images from store-assets/base-metadata.json into the submission, keeping its packages. It sends the submission with msstore submission updateMetadata, which replaces the whole submission. It then reads the listings back and fails before any commit if a base text field differs.
  • Automatic runs never commit, so the draft stays for review in Partner Center.
  • Failure cases: the run stops before changing anything if the submission is in certification or publishing, a base locale is missing, or a base image is not Uploaded. With commit, it recovers an existing PendingCommit draft whose listing already matches. It never republishes an unchanged Published submission.
  • A Refresh base metadata after commit job calls Store base metadata after a committed publish.

Store base metadata

  • Triggers: workflow_dispatch, and workflow_call from Store metadata.
  • Environment: store-partner-center-metadata.
  • Jobs: Get Store base metadata fetches the current Partner Center submission, removes the FileUploadUrl values, and uploads the epikrise-store-base-metadata artifact. Open base metadata pull request opens a pull request on chore/store-base-metadata.
  • Token: uses the release GitHub App token (RELEASE_APP_CLIENT_ID, RELEASE_APP_PRIVATE_KEY), not Partner Center credentials.
  • Review the diff before merging. Merging a stale snapshot overwrites unmerged listing changes.

Website

GitHub Pages

  • Triggers: pushes to main that change docs/** or .github/workflows/pages.yml, and workflow_dispatch.
  • Jobs: build runs actions/jekyll-build-pages on docs/ and uploads the site. deploy publishes it to the github-pages environment.

Clone this wiki locally