diff --git a/.github/workflows/build..yml b/.github/workflows/build..yml new file mode 100644 index 0000000..0ccb698 --- /dev/null +++ b/.github/workflows/build..yml @@ -0,0 +1,23 @@ +name: Build Library + +on: + push: + paths-ignore: + - '**/*.md' + branches: + - main + pull_request: + branches: + - main + paths-ignore: + - '**/*.md' + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..061c230 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Publish Library + +# When a release is published +on: + release: + types: [published] +jobs: + publish: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Get version + run: | + echo "VERSION=${{ github.event.release.tag_name }}" >> $env:GITHUB_ENV + echo "Building with ${{ env.VERSION }}" + - name: Install dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore -p:Version=${{ env.VERSION }} + - name: Pack + run: dotnet pack Compressonator.NET --output nupkgs --configuration Release -p:Version=${{ env.VERSION }} + - name: Nuget Publish + run: dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json \ No newline at end of file diff --git a/Compressonator.NET.csproj b/Compressonator.NET.csproj index 76c0b9a..7efa7cd 100644 --- a/Compressonator.NET.csproj +++ b/Compressonator.NET.csproj @@ -1,5 +1,21 @@ + + Yellow Dog Man Studios + Yellow Dog Man Studios + YellowDogMan.Compressonator.NET + .NET wrapper for the Compressonator library/framework by AMD, using P/Invoke + Copyright (c) Yellow Dog Man Studios s.r.o. 2023 + MIT + icon.png + https://github.com/Yellow-Dog-Man/Compressonator.NET + git + https://yellowdogman.com/ + README.md + compressonator + Initial release + + netstandard2.0 @@ -12,6 +28,11 @@ true + + + + + PreserveNewest diff --git a/Images/icon.png b/Images/icon.png new file mode 100644 index 0000000..7727d02 Binary files /dev/null and b/Images/icon.png differ