-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (30 loc) · 985 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish
on:
push:
tags:
- v*.*.*
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
- name: Install Dependencies
run: dotnet restore
- name: Build Vulkan
run: dotnet build .\Licht.Vulkan --configuration Release --no-restore
- name: Build Licht
run: dotnet build .\Licht --configuration Release --no-restore
- name: Pack Vulkan
run: dotnet pack .\Licht.Vulkan -c Release --no-restore --no-build
- name: Pack Licht
run: dotnet pack .\Licht -c Release --no-restore --no-build
- name: Push Nuget
run: dotnet nuget push .\**\*.nupkg --skip-duplicate --no-symbols -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json