Skip to content

Commit

Permalink
Merge pull request #1 from Yellow-Dog-Man/feat-ci
Browse files Browse the repository at this point in the history
feat(ci): ci
  • Loading branch information
ProbablePrime authored Nov 4, 2023
2 parents c795ff3 + 721619f commit 6587dc5
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build..yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions Compressonator.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Company>Yellow Dog Man Studios</Company>
<Authors>Yellow Dog Man Studios</Authors>
<PackageId>YellowDogMan.Compressonator.NET</PackageId>
<Description>.NET wrapper for the Compressonator library/framework by AMD, using P/Invoke</Description>
<Copyright>Copyright (c) Yellow Dog Man Studios s.r.o. 2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/Yellow-Dog-Man/Compressonator.NET</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectURL>https://yellowdogman.com/</PackageProjectURL>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>compressonator</PackageTags>
<PackageReleaseNotes>Initial release</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
Expand All @@ -12,6 +28,11 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<None Include="Images\icon.png" Pack="true" PackagePath="\"/>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<None Update="CMP_Framework_MDd_DLL.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Binary file added Images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6587dc5

Please sign in to comment.