build: add more projects for sdks
Some checks failed
dotnet publish / package (8.0) (push) Failing after 26s

Add projects for creating new sdk based msbuild projects.
This commit is contained in:
Louis Seubert 2024-03-20 22:57:57 +01:00
parent 2fec5e69e3
commit e24a38966a
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
32 changed files with 818 additions and 242 deletions

View file

@ -0,0 +1,33 @@
name: dotnet publish
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
branches: [ 'main', 'develop' ]
jobs:
package:
runs-on: debian-latest
strategy:
matrix:
dotnet-version: [ '8.0' ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- uses: https://git.geekeey.de/actions/checkout@1
- name: NuGet login
shell: bash
run: |
dotnet nuget update source geekeey --store-password-in-clear-text \
--username "${{ github.actor }}" --password "${{ github.token }}"
- name: .NET pack
shell: bash
run: |
dotnet pack --version-suffix "${{ github.ref_name }}"
- name: .NET test
shell: bash
run: |
dotnet test
- name: NuGet publish
if: ${{ github.ref_type == 'tag' }}
shell: bash
run: |
dotnet nuget push artifacts/packages/release/shipping/*.nupkg

View file

@ -1,21 +0,0 @@
name: dotnet publish
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]
jobs:
package:
runs-on: debian-latest
strategy:
matrix:
dotnet-version: [ '8.0' ]
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
- shell: bash
run: |
dotnet
dotnet sdk check