Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Workflow Generation

Generate a GitHub Actions workflow from your sign.toml:

cargo codesign ci

This reads the configured platforms and env var names from sign.toml and generates .github/workflows/release-sign.yml with the correct secrets mappings.

Options

FlagDefaultDescription
--output <PATH>.github/workflows/release-sign.ymlOutput path for the generated YAML
--config <PATH>auto-discovered sign.tomlPath to sign.toml

What gets generated

For each platform configured in sign.toml, the workflow creates a job on the appropriate runner:

  • macOSmacos-latest
  • Windowswindows-latest
  • Linuxubuntu-latest

Each job:

  1. Installs cargo-codesign
  2. Runs cargo codesign status to verify credentials
  3. Runs the platform-specific signing command

Secrets are mapped from the env var names in sign.toml to ${{ secrets.X }}.

Calling from another workflow

The generated workflow uses workflow_call, so you can invoke it from your release workflow:

sign:
  needs: [build]
  uses: ./.github/workflows/release-sign.yml
  secrets: inherit