Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
lock

GitHub Action

Release archive with hash

v1.0.0

Release archive with hash

lock

Release archive with hash

Upload a source archive and hash at every tagged release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Release archive with hash

uses: carterbox/[email protected]

Learn more about this action in carterbox/release-archive-with-hash

Choose a version

release-archive-with-hash

Upload a source archive and hash at every tagged release.

GitHub source archives are generated on demand and not guaranteed to have a constant hash. This is a problem when you try to verify that old releases have not changed. This tool uploads a release archive (that will have the same hash in perpetuity regardless of GitHubs archive cache invalidation) and a text file containing the hash of the archive.

name: Upload a source archive and hash at every tagged release

on:
  push:
    tags:
    # Use pattern matching to only run on version release tags
      - "v*.*.*"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: carterbox/release-archive-with-hash@main