mirror of https://github.com/ppy/SDL3-CS.git
Merge pull request #3 from smoogipoo/add-deploy-workflow
This commit is contained in:
commit
6eca12f6fd
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pack:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build SDL3-CS.sln -c Release
|
||||||
|
|
||||||
|
- name: Pack
|
||||||
|
run: dotnet pack SDL3-CS/SDL3-CS.csproj -c Release /p:Version=$(git describe --exact-match --tags HEAD)
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: SDL3-CS
|
||||||
|
path: SDL3-CS/bin/Release/ppy.*.nupkg
|
||||||
|
|
||||||
|
- name: Publish tagged release to nuget.org
|
||||||
|
run: dotnet nuget push SDL3-CS/bin/Release/ppy.*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
|
||||||
|
|
@ -14,14 +14,4 @@
|
||||||
<Link>SDL3-CS.licenseheader</Link>
|
<Link>SDL3-CS.licenseheader</Link>
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="NuGet">
|
|
||||||
<Authors>ppy Pty Ltd</Authors>
|
|
||||||
<Company>ppy Pty Ltd</Company>
|
|
||||||
<Copyright>Copyright (c) 2024 ppy Pty Ltd</Copyright>
|
|
||||||
<Product>SDL3-CS</Product>
|
|
||||||
<PackageReleaseNotes>Automated release.</PackageReleaseNotes>
|
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
||||||
<PackageProjectUrl>https://github.com/ppy/SDL3-CS</PackageProjectUrl>
|
|
||||||
<RepositoryUrl>https://github.com/ppy/SDL3-CS</RepositoryUrl>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,18 @@
|
||||||
<NoWarn>$(NoWarn);SYSLIB1054;CA1401</NoWarn>
|
<NoWarn>$(NoWarn);SYSLIB1054;CA1401</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Label="NuGet">
|
||||||
|
<Authors>ppy Pty Ltd</Authors>
|
||||||
|
<Company>ppy Pty Ltd</Company>
|
||||||
|
<Copyright>Copyright (c) 2024 ppy Pty Ltd</Copyright>
|
||||||
|
<Product>ppy.SDL3-CS</Product>
|
||||||
|
<PackageId>ppy.SDL3-CS</PackageId>
|
||||||
|
<PackageReleaseNotes>Automated release.</PackageReleaseNotes>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
<PackageProjectUrl>https://github.com/ppy/SDL3-CS</PackageProjectUrl>
|
||||||
|
<RepositoryUrl>https://github.com/ppy/SDL3-CS</RepositoryUrl>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\SDL3-CS.SourceGeneration\SDL3-CS.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
|
<ProjectReference Include="..\SDL3-CS.SourceGeneration\SDL3-CS.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue