Skip to content

Commit 012df0c

Browse files
committed
rework CI to upload to NuGet, link repository in nuget package & add description for published packages
1 parent a5f98e8 commit 012df0c

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ jobs:
3636
echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
3737
shell: bash
3838

39-
- name: Run GLI
40-
run: |
41-
gh release download -R GreemDev/GLI -O gli -p 'gli-linux-x64' 2.0.30
42-
chmod +x gli
43-
44-
./gli create-tag -T ${{ secrets.GITLAB_TOKEN }} -P ryubing/update-server -n ${{ steps.version_info.outputs.build_version }} -r ${{ steps.version_info.outputs.git_short_hash }} -c "${{ steps.version_info.outputs.commit_message }}"
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
4839
- uses: actions/setup-dotnet@v5
4940
name: "Install .NET SDK"
5041
with:
@@ -56,16 +47,15 @@ jobs:
5647
- name: Compile & publish client library
5748
run: |
5849
cd src/Client
59-
dotnet build -c Release -o ../../nuget_build/client -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}"
50+
dotnet build -c Release -o ../../nuget_build/client -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://github.com/Ryubing/UpdateServer/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}"
6051
cd ../../
6152
6253
cd src/Common
63-
dotnet build -c Release -o ../../nuget_build/common -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}"
54+
dotnet build -c Release -o ../../nuget_build/common -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://github.com/Ryubing/UpdateServer/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}"
6455
cd ../../
6556
66-
dotnet nuget add source "https://git.ryujinx.app/api/v4/projects/71/packages/nuget/index.json" --name gitlab --username ryuadmin --password ${{ secrets.GITLAB_TOKEN }} --store-password-in-clear-text
67-
dotnet nuget push "nuget_build/client/Ryujinx.UpdateClient.${{ steps.version_info.outputs.build_version }}.nupkg" --source gitlab
68-
dotnet nuget push "nuget_build/common/Ryujinx.Systems.Update.Common.${{ steps.version_info.outputs.build_version }}.nupkg" --source gitlab
57+
dotnet nuget push "nuget_build/client/Ryujinx.UpdateClient.${{ steps.version_info.outputs.build_version }}.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
58+
dotnet nuget push "nuget_build/common/Ryujinx.Systems.Update.Common.${{ steps.version_info.outputs.build_version }}.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
6959
7060
- name: Create release
7161
uses: ncipollo/release-action@v1
@@ -74,7 +64,7 @@ jobs:
7464
tag: ${{ steps.version_info.outputs.build_version }}
7565
draft: 'false'
7666
artifacts: "artifacts/*"
77-
body: "**[Changes since last build](https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }})**"
67+
body: "**[Changes since last build](https://github.com/Ryubing/UpdateServer/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }})**"
7868
omitBodyDuringUpdate: true
7969
owner: Ryubing
8070
repo: UpdateServer

src/Client/Ryujinx.Systems.Update.Client.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<PackageId>Ryujinx.UpdateClient</PackageId>
9+
<RepositoryType>git</RepositoryType>
10+
<RepositoryUrl>https://github.com/Ryubing/UpdateServer.git</RepositoryUrl>
11+
<Description>Provides a type-safe C# API to access an instance of Ryubing's Update Server.</Description>
912
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1013
</PropertyGroup>
1114

src/Common/Ryujinx.Systems.Update.Common.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<RepositoryType>git</RepositoryType>
8+
<RepositoryUrl>https://github.com/Ryubing/UpdateServer.git</RepositoryUrl>
9+
<Description>Shared types between Client and Server.</Description>
710
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
811
</PropertyGroup>
912

0 commit comments

Comments
 (0)