-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.12 KB
/
release.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ImGui.Forms Release
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: nuget/setup-nuget@v1
# Setup the build
- name: Wait for other release builds
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.303
- name: Build ImGui.Forms
run: |
dotnet pack --configuration Release --output nuget
- name: Publish ImGui.Forms
run: |
for %f in (*.nupkg) do
dotnet nuget push %f --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
# Upload ImGui.Forms to nuget.org
#- name: Publish ImGui.Forms
# uses: brandedoutcast/publish-nuget@v2
# with:
# PROJECT_FILE_PATH: ImGui.Forms/ImGui.Forms.csproj
# VERSION_FILE_PATH: ImGui.Forms/ImGui.Forms.nuspec
# VERSION_REGEX: '^\s*<version>(.*)<\/version>\s*$'
# TAG_FORMAT: '*'
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}