GitHub action that can be used to create SHA checksums for files.
It works on all platforms: Linux, MacOS and Windows.
Tested on macos-11, macos-12, macos-13, ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022.
An example workflow config:
name: Create SHA256 checksums
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: SHA256 checksums
uses: deep-soft/sha-checksums@v1
with:
type: 'SHA256'
filename: 'SHA256SUMS'
directory: '.'
path: 'release'
env_variable: 'SHA_SUMS'
ignore_git: falseThe generated archive will be placed as specified by directory, path and filename.
Default: SHA256SUMS
The filename for the generated checksums, relative to directory.
Default: .
The working directory where the program runs.
Default: .
The path to the files or directory for which checksums will be computed, relative to directory.
Default: sha256
sha1, sha256, sha512, md5
Default: true
Ignore path ./git and ./.git/