From 000ffafabfd27833fd28091d807f8174d1db489a Mon Sep 17 00:00:00 2001 From: onepiecefreak3 Date: Tue, 7 Jan 2025 14:12:01 +0100 Subject: [PATCH] Add workflow for Kaligraphy; --- .github/workflows/kaligraphy_dev.yml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/kaligraphy_dev.yml diff --git a/.github/workflows/kaligraphy_dev.yml b/.github/workflows/kaligraphy_dev.yml new file mode 100644 index 00000000..39ab26af --- /dev/null +++ b/.github/workflows/kaligraphy_dev.yml @@ -0,0 +1,44 @@ +name: Kuriimu2 Kaligraphy + +on: + push: + branches: + - imgui + paths: + - 'src/lib/Kaligraphy/*.nuspec' + - 'src/lib/Kaligraphy/*.csproj' + - 'src/lib/Kaligraphy/*.cs' + - 'src/lib/Kaligraphy.Contract/*.csproj' + - 'src/lib/Kaligraphy.Contract/*.cs' + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - uses: nuget/setup-nuget@v2 + + - name: Wait for other dev builds + uses: softprops/turnstyle@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0 + + - name: Setup NuGet sources + run: | + dotnet nuget add source https://nuget.pkg.github.com/FanTranslatorsInternational/index.json --name Kuriimu2 --username onepiecefreak3 --password ${{ secrets.NUGET_UPDATE }} + + - name: Build Nuget + run: dotnet build ./src/lib/Kaligraphy/Kaligraphy.csproj --configuration Release + + - name: Publish Nuget + run: | + foreach($file in (Get-ChildItem "nuget" -Recurse -Include *.nupkg)) { + dotnet nuget push $file --api-key ${{ secrets.NUGET_UPDATE }} --source https://nuget.pkg.github.com/FanTranslatorsInternational/index.json --skip-duplicate + }