Skip to content

Commit

Permalink
chore(documentation): How to publish winget packages. (#1138)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it

The yaml files (winget package manifests) aren't required.
  • Loading branch information
hilmarf authored Nov 25, 2024
1 parent 30a7828 commit 676bdc1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 43 deletions.
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).

## 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.

0 comments on commit 676bdc1

Please sign in to comment.