Skip to content

BED-6848 chore: version bump to v2.8.1 (#189) #61

BED-6848 chore: version bump to v2.8.1 (#189)

BED-6848 chore: version bump to v2.8.1 (#189) #61

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: bash
strategy:
matrix:
release:
- type: Debug
suffix: '+debug'
- type: Release
suffix: ''
name: Build (${{ matrix.release.type }})
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: |
VERSION=${{ github.ref_name }}
dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1}
- name: Zip
run: 7z a -tzip -mx9 SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip $PWD/bin/${{ matrix.release.type }}/net472/*
- name: Checksum zip files
run: |
sha256sum SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip > SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip.sha256
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip
SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip.sha256