Initial setup

This commit is contained in:
Amer Koleci
2022-09-01 10:41:06 +02:00
commit 18e10653c0
16 changed files with 926 additions and 0 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1 @@
github: [amerkoleci]

38
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Build
on:
push:
branches:
- 'main'
paths-ignore:
- '*.md'
- 'LICENSE'
pull_request:
paths-ignore:
- '*.md'
- 'LICENSE'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: false
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Pack
run: dotnet pack Vortice.Win32.sln --configuration Release --output build/packages
- name: Publish to NuGet
if: github.event_name == 'push'
run: dotnet nuget push build/packages/**/*.nupkg -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json