Skip to content

Commit

Permalink
Update workflows to work with public nuget repository;
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecefreak3 committed Jan 6, 2025
1 parent 3fd8d1f commit 14c3a68
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/kanvas_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- 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 }}
dotnet nuget add source https://nuget.pkg.github.com/FanTranslatorsInternational/index.json --name Kuriimu2
- name: Build Nuget
run: dotnet build ./src/lib/Kanvas/Kanvas.csproj --configuration Release
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/kompression_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Kuriimu2 Kompression

on:
push:
branches:
- imgui
paths:
- 'src/lib/Kompression/*.nuspec'
- 'src/lib/Kompression/*.csproj'
- 'src/lib/Kompression/*.cs'
- 'src/lib/Kompression.Contract/*.csproj'
- 'src/lib/Kompression.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
- name: Build Nuget
run: dotnet build ./src/lib/Kompression/Kompression.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
}

0 comments on commit 14c3a68

Please sign in to comment.