> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# bach workflow

> bach workflow writes .github/workflows/bach-release.yml, a one-button GitHub release for your app, with options for pinning, winget and macOS.

`bach workflow` writes `.github/workflows/bach-release.yml` into the Git repository that holds your `bach.toml`. What the workflow does is described in [Release from GitHub](/docs/guides/releasing.md).

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach workflow
bach workflow desktop              # bach.toml is in desktop/
bach workflow --winget Example.Hello
bach workflow --macos
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `DIR` | `.` | Folder with `bach.toml` |
| `--force` | off | Replace a `bach-release.yml` Bach didn't write |
| `--pin MODE` | `commit` | `commit` pins Bach's action to the commit of your Bach release; `float` uses `usebach/bach-installer@v0` |
| `--winget ID` | off | Also open a winget pull request after releases (needs the `WINGET_TOKEN` secret) |
| `--macos` | off | Also build the Mac Setup app in a job on a Mac runner (needs `[macos]`) |

* Needs a `bach.toml` and a Git repository.
* Fills in build steps for Rust, Tauri, Electron and .NET and for your package manager (npm, pnpm, Yarn or Bun). Other projects get a `TODO` step.
* Files that start with `# Generated by Bach` are updated in place; others need `--force`. A winget or Mac job stays when you run it again.
* With `commit` pinning and no network or Git, it falls back to `@v0` and says so.
* Without a GitHub `origin`, it tells you the workflow appears once the repository is on GitHub.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.