Skip to content

Added hash algorithms comparision table to Readme. #4

Added hash algorithms comparision table to Readme.

Added hash algorithms comparision table to Readme. #4

Workflow file for this run

name: Build and Package Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
# --- THE GATEKEEPER: RUN TESTS ---
- name: Run Tests
# If this fails, the workflow stops here and no release is created
run: |
dotnet test OutSystems.NetChecksumUtils.UnitTests/OutSystems.NetChecksumUtils.UnitTests.csproj \
--configuration Release \
--no-restore \
--nologo \
--collect:"XPlat Code Coverage" \
--results-directory ./coverage
- name: Report Code Coverage (Optional Summary)
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/**/coverage.cobertura.xml
badge: true
format: markdown
output: both
- name: Write Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
# --- PACKAGING STEPS (Only runs if tests pass) ---
- name: Get Version from Tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Publish App
run: dotnet publish OutSystems.NetChecksumUtils/OutSystems.NetChecksumUtils.csproj -c Release -r linux-x64 --self-contained false -o ./publish --no-restore
- name: Create Versioned Zip
run: |
cd ./publish
zip -r ../NetChecksumUtils_${{ steps.get_version.outputs.VERSION }}.zip .
cd ..
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: NetChecksumUtils_${{ steps.get_version.outputs.VERSION }}.zip
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}