mirror of
https://github.com/rfvgyhn/min-ed-launcher.git
synced 2026-02-04 14:05:42 +00:00
generate checksum on release
This commit is contained in:
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
@ -5,6 +5,9 @@ on:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
env:
|
||||
BUILD_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
@ -41,14 +44,19 @@ jobs:
|
||||
if: ${{ matrix.target == 'linux-x64' }}
|
||||
run: ./publish.sh
|
||||
|
||||
- name: Create Checksums
|
||||
run: ci/checksums.sh
|
||||
|
||||
- name: Create Release Notes
|
||||
run: ci/latest-changes.sh > release-notes.txt
|
||||
run: ci/release-notes.sh
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: "artifacts/min-ed-launcher*"
|
||||
body_path: release-notes.txt
|
||||
body_path: release-notes.md
|
||||
files: |
|
||||
artifacts/min-ed-launcher*
|
||||
artifacts/shasum.txt
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@ investigation/
|
||||
src/EdLauncher/epic-sdk-details.txt
|
||||
lib/*
|
||||
!lib/libsteam_api.so
|
||||
release-notes.md
|
||||
benchmarks/MinEdLauncher.Benchmarks/BenchmarkDotNet.Artifacts/
|
||||
|
||||
## rust
|
||||
target/
|
||||
|
||||
9
ci/checksums.sh
Executable file
9
ci/checksums.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
file_name=shasum.txt
|
||||
|
||||
pushd $(dirname "$(readlink -f "$0")")/../artifacts > /dev/null
|
||||
find . -type f ! -name $file_name -printf '%P\n' | xargs shasum -a 256 -b > $file_name
|
||||
cat $file_name
|
||||
popd > /dev/null
|
||||
14
ci/release-notes.sh
Executable file
14
ci/release-notes.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
root=$(dirname "$(readlink -f "$0")")/..
|
||||
release_notes="$root"/release-notes.md
|
||||
|
||||
"$root"/ci/latest-changes.sh > "$release_notes"
|
||||
echo -n "-----
|
||||
Verify the release artifacts are built from source by Github by comparing the _shasum.txt_ contents with the the _Create Checksums_ section of the job log of the [automated release].
|
||||
|
||||
See [wiki] for instructions on how to check the checksums of the release artifacts.
|
||||
|
||||
[automated release]: ${BUILD_URL:-https://github.com/rfvgyhn/min-ed-launcher/actions}
|
||||
[wiki]: https://github.com/rfvgyhn/min-ed-launcher/wiki/Verify-Checksums-for-a-Release" >> "$release_notes"
|
||||
Reference in New Issue
Block a user