Skip to content

Commit 74c8c27

Browse files
author
Ilya
committedOct 21, 2024·
test 1
1 parent bb40d93 commit 74c8c27

6 files changed

+28
-39
lines changed
 

‎.github/workflows/release-action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: startsWith(github.ref, 'refs/tags/v')
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v4

‎.github/workflows/release-debug-version.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: startsWith(github.ref, 'refs/tags/v')
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v4
@@ -31,10 +31,14 @@ jobs:
3131
run: dotnet nuget add source ${{ env.GITHUB_PACKAGES_URL }} \--username '${{secrets.USER_NAME}}' \--password '${{secrets.GIHUB_NUGET_AUTH_TOKEN}}' \--store-password-in-clear-text
3232

3333
- name: Install dependencies
34-
run: dotnet restore ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj
34+
run: |
35+
dotnet restore ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj
36+
dotnet restore ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj
3537
3638
- name: Build
37-
run: dotnet build ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj --configuration Release --no-restore
39+
run: |
40+
dotnet build ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj --configuration Release --no-restore
41+
dotnet build ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj --configuration Release --no-restore
3842
3943
- name: Set version variable
4044
env:
@@ -53,13 +57,14 @@ jobs:
5357
echo "Error: Tag does not match NuGet package version"
5458
exit 1
5559
fi
56-
60+
5761
- name: Tests
58-
run: |
59-
dotnet test ./src/${{env.PROJECT_NAME}}.Tests/${{env.PROJECT_NAME}}.Tests.csproj
62+
run: dotnet test ./src/${{env.PROJECT_NAME}}.Tests/${{env.PROJECT_NAME}}.Tests.csproj
6063

61-
- name: Pack package
62-
run: dotnet pack ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release /p:Version=${{ env.VERSION }} --no-build -o .
64+
- name: Pack packages
65+
run: |
66+
dotnet pack ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release /p:Version=${VERSION} --no-build -o .
67+
dotnet pack ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj -c Release /p:Version=${VERSION} --no-build -o .
6368
6469
- name: List output files
6570
run: ls -la

‎.github/workflows/release-pre-version.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: startsWith(github.ref, 'refs/tags/v')
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

2323
- name: Setup .NET
2424
uses: actions/setup-dotnet@v4
@@ -32,10 +32,14 @@ jobs:
3232
run: dotnet nuget add source ${{ env.GITHUB_PACKAGES_URL }} \--username '${{secrets.USER_NAME}}' \--password '${{secrets.GIHUB_NUGET_AUTH_TOKEN}}' \--store-password-in-clear-text
3333

3434
- name: Install dependencies
35-
run: dotnet restore ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj
35+
run: |
36+
dotnet restore ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj
37+
dotnet restore ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj
3638
3739
- name: Build
38-
run: dotnet build ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj --configuration Release --no-restore
40+
run: |
41+
dotnet build ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj --configuration Release --no-restore
42+
dotnet build ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj --configuration Release --no-restore
3943
4044
- name: Set version variable
4145
env:
@@ -56,12 +60,14 @@ jobs:
5660
fi
5761
5862
- name: Tests
59-
run: |
60-
dotnet test ./src/${{env.PROJECT_NAME}}.Tests/${{env.PROJECT_NAME}}.Tests.csproj
63+
run: dotnet test ./src/${{env.PROJECT_NAME}}.Tests/${{env.PROJECT_NAME}}.Tests.csproj
6164

62-
- name: Pack package
63-
run: dotnet pack ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release /p:Version=${VERSION} --no-build -o .
65+
- name: Pack packages
66+
run: |
67+
dotnet pack ./src/${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release /p:Version=${VERSION} --no-build -o .
68+
dotnet pack ./src/${{env.PROJECT_NAME}}.Prometheus/${{env.PROJECT_NAME}}.Prometheus.csproj -c Release /p:Version=${VERSION} --no-build -o .
6469
6570
- name: List output files
6671
run: ls -la
6772

73+

‎src/Asv.Gnss.sln

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1717
..\.github\workflows\release-debug-version.yml = ..\.github\workflows\release-debug-version.yml
1818
..\.github\workflows\release-pre-version.yml = ..\.github\workflows\release-pre-version.yml
1919
Directory.Build.props = Directory.Build.props
20-
Asv.Gnss\Asv.Gnss.nuspec = Asv.Gnss\Asv.Gnss.nuspec
2120
EndProjectSection
2221
EndProject
2322
Global

‎src/Asv.Gnss/Asv.Gnss.nuspec

-21
This file was deleted.

‎src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<Nullable>enable</Nullable>
4-
<ProductVersion>1.6.4</ProductVersion>
4+
<ProductVersion>1.6.6</ProductVersion>
55
<AsvCommonVersion>2.0.0</AsvCommonVersion>
66
</PropertyGroup>
77
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.