Skip to content

Commit 231b866

Browse files
authored
Target .NET10 + Upgrade GH Actions (#15)
1 parent 520168a commit 231b866

5 files changed

Lines changed: 38 additions & 14 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
steps:
2121
# Step 1 - Checkout Code
2222
- name: Checkout Code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424

2525
# Step 2 - Run CodeQL
2626
- name: Run CodeQL
27-
uses: ricado-group/dotnet-library-codeql-action@v1
27+
uses: ricado-group/dotnet-library-codeql-action@v2
2828
with:
2929
private-nuget-url: 'https://nuget.pkg.github.com/ricado-group/index.json'
3030
private-nuget-token: ${{ secrets.GH_PACKAGES_PAT }}

.github/workflows/main.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,47 @@ on:
1010
- '*.*.*'
1111
pull_request:
1212

13+
permissions: {}
14+
1315
# Workflow Jobs
1416
jobs:
1517
build:
18+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
steps:
23+
- name: Checkout Code
24+
uses: actions/checkout@v6
25+
26+
- name: Build
27+
uses: ricado-group/dotnet-library-build-release-action@v2
28+
with:
29+
project-name: 'RICADO.MettlerToledo'
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
private-nuget-url: 'https://nuget.pkg.github.com/ricado-group/index.json'
32+
private-nuget-token: ${{ secrets.GH_PACKAGES_PAT }}
33+
public-nuget-user: ${{ vars.NUGET_USER }}
34+
publish-public: false
35+
dotnet-version: 10.0.x
36+
37+
publish:
38+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
1639
runs-on: ubuntu-latest
40+
permissions:
41+
id-token: write
42+
contents: write
1743
steps:
18-
# Step 1 - Checkout Code
1944
- name: Checkout Code
20-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
2146

22-
# Step 2 - Build and Publish
2347
- name: Build and Publish
24-
uses: ricado-group/dotnet-library-build-release-action@v1
48+
uses: ricado-group/dotnet-library-build-release-action@v2
2549
with:
2650
project-name: 'RICADO.MettlerToledo'
2751
github-token: ${{ secrets.GITHUB_TOKEN }}
2852
private-nuget-url: 'https://nuget.pkg.github.com/ricado-group/index.json'
2953
private-nuget-token: ${{ secrets.GH_PACKAGES_PAT }}
30-
public-nuget-token: ${{ secrets.NUGET_APIKEY }}
54+
public-nuget-user: ${{ vars.NUGET_USER }}
3155
publish-public: true
32-
dotnet-version: 8.0.x
56+
dotnet-version: 10.0.x

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 - 2024 RICADO Limited
3+
Copyright (c) 2009 - 2026 RICADO Limited
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# RICADO.MettlerToledo
2-
A .NET 6+ and .NET Standard 2.0 Library for Communicating with Mettler Toledo Indicators
2+
A .NET 8+ and .NET Standard 2.0 Library for Communicating with Mettler Toledo Indicators

RICADO.MettlerToledo/RICADO.MettlerToledo.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0;net8.0;netstandard2.0</TargetFrameworks>
55
<Authors>RICADO</Authors>
66
<Company>RICADO Limited</Company>
7-
<Description>A .NET 6+ and .NET Standard 2.0 Library for Communicating with Mettler Toledo Indicators</Description>
8-
<Copyright>Copyright © RICADO Limited 2009 - 2024</Copyright>
7+
<Description>A .NET 8+ and .NET Standard 2.0 Library for Communicating with Mettler Toledo Indicators</Description>
8+
<Copyright>Copyright © RICADO Limited 2009 - 2026</Copyright>
99
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1010
<PackageIcon>packageIcon.png</PackageIcon>
1111
<RepositoryUrl>https://github.com/ricado-group/dotnet-mettlertoledo</RepositoryUrl>
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="RICADO.Sockets" Version="1.4.0" />
31+
<PackageReference Include="RICADO.Sockets" Version="2.0.0" />
3232
</ItemGroup>
3333

3434
</Project>

0 commit comments

Comments
 (0)