Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/blob/main/.github/workflows/release-publish.yml # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / .github / workflows / release-publish.yml` 50 lines ยท 2362 bytes Raw Blame History 1 name: "Release publish (stage 3: verify the offline signature, then publish the draft)" 2 3 # Offline-signing handoff, stage 3 (Drake ruling 1, sc#385; docs/release/RELEASE_SIGNING.md). Run by hand after the 4 # operator has uploaded SHA256SUMS.txt.sig, made offline with the public-release key, to the draft release that 5 # release.yml drafted for the tag. This workflow holds no key and signs nothing: it checks out the tagged commit (so the 6 # key it trusts is the one pinned in that commit), downloads the draft's assets, runs scripts/release-publish-gate.sh, 7 # and publishes only when the gate passes. Unsigned, mismatched, dry-run, internal-test-key and placeholder-key releases 8 # are refused. Static guard: scripts/test-release-signing-workflow.sh. 9 on: 10 workflow_dispatch: 11 inputs: 12 tag: 13 description: "The v* tag whose draft release now carries SHA256SUMS.txt.sig" 14 required: true 15 type: string 16 17 permissions: {} 18 19 jobs: 20 verify-and-publish: 21 name: Verify the offline signature and publish 22 runs-on: ubuntu-latest 23 # Only this job publishes the draft; the workflow default token has no permissions. 24 permissions: 25 contents: write 26 env: 27 TAG: ${{ inputs.tag }} 28 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 29 steps: 30 - name: Check the tag name 31 run: | 32 printf '%s\n' "$TAG" | grep -qxE 'v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.]+)?' || { echo "not a release tag: $TAG" >&2; exit 1; } 33 34 - name: Checkout the tagged commit (its docs/release/allowed_signers is the key this release is checked against) 35 uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 36 with: 37 ref: refs/tags/${{ inputs.tag }} 38 persist-credentials: false 39 40 - name: Download the draft release assets 41 run: | 42 [ "$(gh release view "$TAG" --json isDraft --jq .isDraft)" = true ] || { echo "$TAG is not a draft release; nothing to publish" >&2; exit 1; } 43 gh release download "$TAG" --dir release-assets 44 ls -l release-assets 45 46 - name: Publish gate (offline signature valid for the pinned release key, every asset matches, no dry-run asset) 47 run: bash scripts/release-publish-gate.sh release-assets docs/release/allowed_signers 48 49 - name: Publish the verified draft 50 run: gh release edit "$TAG" --draft=false