Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(documentation): How to publish winget packages. #1138

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion hack/winget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,19 @@ winget install --manifest .\manifests\o\Open-Component-Model\ocm-cli\0.15.0\
## update package

```powershell
wingetcreate update --urls https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-386.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-amd64.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-arm64.zip --version 0.15.0 --release-notes-url https://github.com/open-component-model/ocm/releases/tag/v0.15.0 ` Open-Component-Model.ocm-cli
wingetcreate update --urls https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-amd64.zip https://github.com/open-component-model/ocm/releases/download/v0.15.0/ocm-0.15.0-windows-arm64.zip --version 0.15.0 --release-notes-url https://github.com/open-component-model/ocm/releases/tag/v0.15.0 ` Open-Component-Model.ocm-cli
```

## github action

[push-to-winget](../../.github/workflows/publish-to-other-than-github.yaml#L124) requires a ["Personal access tokens (classic)"](https://github.com/organizations/open-component-model/settings/secrets/actions/OCM_CI_ROBOT_0_REPO). There is an open issue on [winget-create](https://github.com/microsoft/winget-create/issues/470). We [tried it](https://github.com/open-component-model/ocm/pull/1133) already with fine grained tokens and our [ocmbot](https://github.com/organizations/open-component-model/settings/apps/ocmbot). But that doesn't work: [ERROR: Resource not accessible by integration](https://github.com/open-component-model/ocm/actions/runs/12008922878/job/33472565698).
hilmarf marked this conversation as resolved.
Show resolved Hide resolved

## winget packages repository

The [pull request](https://github.com/microsoft/winget-pkgs/pull/193703) creator of has to sign the [Contributor License Agreement](https://cla.opensource.microsoft.com/microsoft/winget-pkgs). In case someone else than [ocm-ci-robot-0](https://github.com/orgs/open-component-model/people/ocm-ci-robot-0) creates such an update PR, you'll need to reply with:

```text
@microsoft-github-policy-service agree company="SAP SE"
```

on your PR at least once.

This file was deleted.

This file was deleted.

This file was deleted.

Loading