Skip to content

Commit

Permalink
build: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elementh committed Oct 9, 2023
1 parent d5713a5 commit b609be6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/package.navigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ env:
PROJECT_NAME: Navigator
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
uses: actions/setup-dotnet@v3
- name: Restore
working-directory: ./src
run: dotnet restore
Expand All @@ -35,7 +31,6 @@ jobs:
working-directory: ./src
run: dotnet test -c Release
- name: Pack
if: matrix.os == 'ubuntu-latest'
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$GITHUB_RUN_ID src/$PROJECT_NAME.sln
# - name: Upload Artifact
# if: matrix.os == 'ubuntu-latest'
Expand All @@ -59,10 +54,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Create Release NuGet package
uses: actions/setup-dotnet@v3
- name: Create release NuGet package
run: |
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
Expand Down
5 changes: 5 additions & 0 deletions src/Navigator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Testing", "Sample.Te
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Store", "Sample.Store\Sample.Store.csproj", "{05843F22-918E-43BB-B6E9-BE112A6B180F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution-items", ".solution-items", "{731D9036-DAE1-4300-825D-37C6F25C4F60}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\package.navigator.yml = ..\.github\workflows\package.navigator.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
1 change: 1 addition & 0 deletions src/Sample.Store/Sample.Store.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Sample/Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"rollForward": "feature",
"version": "7.0.111"
}
}

0 comments on commit b609be6

Please sign in to comment.