Skip to content

Fixing issue with SQL injection #26

Fixing issue with SQL injection

Fixing issue with SQL injection #26

name: Raccon Bits .NET CD/Release
on:
release:
types: [published, created, prereleased, released]
jobs:
release:
permissions: write-all
name: Release
strategy:
matrix:
kind: ["linux", "windows", "macOS"]
include:
- kind: linux
os: ubuntu-latest
target: linux-x64
- kind: windows
os: windows-latest
target: win-x64
- kind: macOS
os: macos-latest
target: osx-x64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Build
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
release_name="raccoonbits-$tag-${{ matrix.target }}"
# Build everything (--framework netcoreapp3.1)
dotnet publish RaccoonBitsCli/RaccoonBitsCli.csproj --runtime "${{ matrix.target }}" -c Release -o "$release_name"
# Pack files
if [ "${{ matrix.target }}" == "win-x64" ]; then
# Pack to zip for Windows
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name}.tar.gz" "$release_name"
fi
# Delete output directory
rm -r "$release_name"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "raccoonbits-*"