Skip to content

Commit

Permalink
Add publish artifacts step to GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Aug 6, 2024
1 parent f6a3bcc commit 442c40e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,25 @@ on:
jobs:
build:

runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore /property:ContinuousIntegrationBuild=True

# - name: Test
# run: dotnet test --configuration Release --no-restore --no-build

- name: Pack
run: dotnet pack --configuration Release --no-restore --no-build

- name: Publish
uses: actions/upload-artifact@v4
with:
name: packages
path: '**/*.nupkg'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>DeviceDetectorNET.RegexEngine.PCRE</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions DeviceDetector.NET.Tests/DeviceDetector.NET.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>

<RootNamespace>DeviceDetectorNET.Tests</RootNamespace>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions DeviceDetector.NET.Web/DeviceDetector.NET.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>DeviceDetectorNET.Web</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 442c40e

Please sign in to comment.