Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.27 KB

File metadata and controls

51 lines (40 loc) · 2.27 KB

Cepha.Pkg — Publishing Repository Template

This folder is a template for the publishing repo at sbay-dev/Cepha.Pkg. Copy the contents of .github/workflows/ into that repo's root.

How the pipeline works

Publisher (local)                 sbay-dev/Cepha.Pkg               nuget.org
─────────────────                 ────────────────                 ─────────
cpoly publish my.nupkg            GitHub Release (draft)
        │                                 │
        │ POST /releases/:id/assets        │
        └────────────────────────────────▶│
                                          │ on: release (created)
                                          ▼
                              .github/workflows/publish-nupkg.yml
                                          │
                                          │ 1. gh release download *.nupkg
                                          │ 2. sha256 + ZIP integrity + manifest scan
                                          │ 3. append INTEGRITY.md to release
                                          │ 4. dotnet nuget push  ──────────▶ published

Required repository secrets

Secret Scope on PAT
NUGET_API_KEY Package owner: sultanalyami, Glob: pkg.cpoly.*, Expires in a year

Publisher workflow

# 1. Build the .cep package
cpoly pack .\my-extension -o .\my-ext.cep

# 2. Wrap into a NuGet-compatible .nupkg (id auto-prefixed with pkg.cpoly.)
cpoly pkg-publish .\my-ext.cep -o .\pkg.cpoly.my-ext.1.0.0.nupkg

# 3. Push to the publishing repo — triggers the scan + nuget push workflow
$env:GITHUB_TOKEN = "<fine-grained PAT with Contents: write on sbay-dev/Cepha.Pkg>"
cpoly publish .\pkg.cpoly.my-ext.1.0.0.nupkg

Within a few minutes the package appears on https://www.nuget.org/packages/pkg.cpoly.my-ext/ and is installable anywhere:

cpoly -c "pkg install pkg.cpoly.my-ext"