mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Build jobs (Linux, Windows x64/ARM64, macOS, Windows installers, AUR and Homebrew staging) run repository code with no environment, secret, or id-token and produce unsigned files. Sign and publish jobs run in the release environment, check out only .github/release/, and run only those scripts and SHA-pinned actions on artifacts treated as data: macOS Developer ID signing, notarization, and stapling (from APPLE_SIGNING_CERTIFICATE, APPLE_NOTARY_KEY, and the APPLE_NOTARY_KEY_ID/ISSUER_ID variables), Azure Authenticode, the release service, the GitHub release, and the AUR and Homebrew pushes. Every artifact carries a SHA256SUMS whose digest its job reports; every job that downloads it checks that digest. Signed macOS builds are verified and launched in a job without secrets. macos-signed.yml is gone (a check run covers it); the site deploy is no longer part of Release.
31 lines
1,019 B
YAML
31 lines
1,019 B
YAML
name: Upload a release artifact
|
|
description: Writes SHA256SUMS for a directory, uploads it, and outputs the manifest's digest for the job's outputs.
|
|
inputs:
|
|
name:
|
|
description: Artifact name
|
|
required: true
|
|
path:
|
|
description: Directory to upload
|
|
required: true
|
|
retention-days:
|
|
description: Days to keep the artifact (0 keeps the repository default)
|
|
required: false
|
|
default: "0"
|
|
outputs:
|
|
digest:
|
|
description: SHA-256 of the artifact's SHA256SUMS
|
|
value: ${{ steps.checksum.outputs.digest }}
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- id: checksum
|
|
shell: bash
|
|
run: echo "digest=$(bash "${GITHUB_ACTION_PATH//\\//}/../write-checksums.sh" "$UPLOAD_PATH")" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
UPLOAD_PATH: ${{ inputs.path }}
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
with:
|
|
name: ${{ inputs.name }}
|
|
path: ${{ inputs.path }}
|
|
retention-days: ${{ inputs.retention-days }}
|
|
if-no-files-found: error
|