mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-06 22:52:49 +08:00
30 lines
706 B
YAML
30 lines
706 B
YAML
name: YaeLib NuGet Publish
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tags:
|
|
description: 'Version already increased?'
|
|
required: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./YaeAchievementLib
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v4
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet publish
|
|
- name: Publish to NuGet
|
|
run: nuget push .\bin\Release\*.nupkg ${{ secrets.NUGET_API_KEY }} -src https://api.nuget.org/v3/index.json
|