mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-12 21:58:31 +02:00
build with sha256 in release body
This commit is contained in:
parent
bc4d029cf0
commit
a90754a67e
3 changed files with 31 additions and 8 deletions
8
.github/workflows/build-linux.yml
vendored
8
.github/workflows/build-linux.yml
vendored
|
@ -72,6 +72,11 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
compression-level: 9
|
compression-level: 9
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$(sha256sum Picocrypt | cut -d ' ' -f1)" >> $GITHUB_ENV
|
||||||
|
echo "CHECKSUM_DEB=$(sha256sum Picocrypt.deb | cut -d ' ' -f1)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -80,3 +85,6 @@ jobs:
|
||||||
Picocrypt.deb
|
Picocrypt.deb
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
body: |
|
||||||
|
**Picocrypt sha256**: ${{ env.CHECKSUM_PICOCRYPT }}
|
||||||
|
**Picocrypt.deb sha256**: ${{ env.CHECKSUM_DEB }}
|
||||||
|
|
15
.github/workflows/build-macos.yml
vendored
15
.github/workflows/build-macos.yml
vendored
|
@ -5,10 +5,10 @@ permissions:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "VERSION"
|
- "VERSION"
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -63,6 +63,11 @@ jobs:
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
HASH=$(shasum -a 256 Picocrypt.dmg | cut -d ' ' -f1)
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$HASH" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -70,3 +75,5 @@ jobs:
|
||||||
Picocrypt.dmg
|
Picocrypt.dmg
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
body: |
|
||||||
|
**Picocrypt.dmg sha256**: ${{ env.CHECKSUM_PICOCRYPT }}
|
||||||
|
|
16
.github/workflows/build-windows.yml
vendored
16
.github/workflows/build-windows.yml
vendored
|
@ -5,10 +5,10 @@ permissions:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "VERSION"
|
- "VERSION"
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -78,6 +78,12 @@ jobs:
|
||||||
$version = Get-Content -Path "VERSION"
|
$version = Get-Content -Path "VERSION"
|
||||||
echo "VERSION=$version" >> $env:GITHUB_ENV
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$hash = Get-FileHash "src/Picocrypt.exe" -Algorithm SHA256
|
||||||
|
echo "CHECKSUM_PICOCRYPT=$($hash.Hash)" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
@ -85,3 +91,5 @@ jobs:
|
||||||
src/Picocrypt.exe
|
src/Picocrypt.exe
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
body: |
|
||||||
|
**Picocrypt.exe sha256**: ${{ env.CHECKSUM_PICOCRYPT }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue