Skip to content

Update release.yml

Update release.yml #97

Workflow file for this run

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}}