This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
added .h file to the release #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
push: | |
branches: | |
- workflowTest | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up MSVC | |
uses: microsoft/[email protected] | |
- name: Build .lib file | |
run: | | |
msbuild /p:Configuration=Release /t:RegistryHelper /p:Platform=x64 RegistryHelper.sln | |
- name: Upload to Release | |
uses: actions/upload-artifact@v2 | |
with: | |
name: lib-artifact | |
path: | | |
x64/Release/RegistryHelper.lib | |
x64/Release/RegistryHelper.pdb | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: git fetch --tags | |
- name: Display release version | |
run: | | |
echo "Release version: ${{ env.TAG }}" | |
- name: Download Artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: lib-artifact | |
path: x64/Release | |
- name: Generate SHA256 hashes | |
id: hashes | |
run: | | |
cd x64/Release | |
hash_array="" | |
for file in *; do | |
file_name=$(basename "$file") | |
hash_value=$(sha256sum "$file" | cut -d' ' -f1) | |
hash_array="${hash_array}${file_name}:${hash_value};" | |
done | |
echo "HASHES=${hash_array}" >> $GITHUB_ENV | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.TAG }} | |
name: "Release ${{ env.TAG }}" | |
body: | | |
**File Hashes:** | |
``` | |
${{ steps.hashes.outputs.hashes }} | |
``` | |
files: | | |
x64/Release/* | |
/RegistryHelper/RegistryHelper.h | |
token: ${{ secrets.GITHUB_TOKEN }} | |
append_body: false |