Compare commits

...

9 commits

Author SHA1 Message Date
Evan Su
2862853176
Update build-windows.yml: add append_body: true 2025-01-24 20:35:31 -05:00
Evan Su
a14b95b430
Update build-windows.yml: change release body checksum format 2025-01-24 20:20:04 -05:00
Evan Su
b043713c0e
Update build-macos.yml 2025-01-24 20:18:36 -05:00
Evan Su
dfa51d5a2c
Update build-linux.yml: small release body text change 2025-01-24 20:18:04 -05:00
Evan Su
f89fc1f153
Update build-macos.yml: append_body = true 2025-01-24 20:10:34 -05:00
Evan Su
5c9e6e82ec
Update build-linux.yml: append_body = true 2025-01-24 20:04:30 -05:00
Evan Su
58c8cbb711
Merge pull request #88 from Retengart/build-yaml
Github Actions with sha256 in release body
2025-01-24 20:00:55 -05:00
Alex Verner
7f630676c0 sha256 beautification 2025-01-25 00:31:27 +03:00
Alex Verner
a90754a67e build with sha256 in release body 2025-01-24 21:33:45 +03:00
3 changed files with 44 additions and 13 deletions

View file

@ -9,6 +9,7 @@ on:
- "VERSION"
branches:
- main
workflow_dispatch:
jobs:
build:
@ -38,7 +39,7 @@ jobs:
go build -v -ldflags="-s -w" -o Picocrypt Picocrypt.go
env:
CGO_ENABLED: 1
GOAMD64: v2
GOAMD64: v1
- name: Package as .deb
run: |
@ -72,6 +73,11 @@ jobs:
if-no-files-found: error
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
uses: softprops/action-gh-release@v2
with:
@ -80,3 +86,8 @@ jobs:
Picocrypt.deb
tag_name: ${{ env.VERSION }}
make_latest: true
append_body: true
body: |
**Linux:**
`sha256(Picocrypt) ${{ env.CHECKSUM_PICOCRYPT }}`
`sha256(Picocrypt.deb) ${{ env.CHECKSUM_DEB }}`

View file

@ -9,6 +9,7 @@ on:
- "VERSION"
branches:
- main
workflow_dispatch:
jobs:
build:
@ -63,6 +64,11 @@ jobs:
VERSION=$(cat VERSION)
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
uses: softprops/action-gh-release@v2
with:
@ -70,3 +76,7 @@ jobs:
Picocrypt.dmg
tag_name: ${{ env.VERSION }}
make_latest: true
append_body: true
body: |
**macOS:**
`sha256(Picocrypt.dmg) ${{ env.CHECKSUM_PICOCRYPT }}`

View file

@ -78,6 +78,12 @@ jobs:
$version = Get-Content -Path "VERSION"
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
uses: softprops/action-gh-release@v2
with:
@ -85,3 +91,7 @@ jobs:
src/Picocrypt.exe
tag_name: ${{ env.VERSION }}
make_latest: true
append_body: true
body: |
**Windows:**
`sha256(Picocrypt.exe) ${{ env.CHECKSUM_PICOCRYPT }}`