Skip to content

Commit f90a72a

Browse files
committed
Update ci.yml
1 parent 8d2e8b9 commit f90a72a

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,38 @@
11
name: "Deploy to NuGet"
2-
32
on:
43
push:
54
tags:
65
- "v*"
7-
86
env:
97
SOLUTION_FILE: ValueMapper/ValueMapper.sln
10-
118
PROJECT_PATH: ValueMapper/ValueMapperCore/ValueMapper.csproj
12-
13-
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/output
14-
9+
PACKAGE_OUTPUT_DIRECTORY: D:/a/ValueMapper/ValueMapper/output
1510
NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json"
16-
1711
jobs:
1812
deploy:
1913
name: "Deploy"
20-
2114
runs-on: "windows-latest"
22-
2315
steps:
2416
- name: "Checkout"
25-
2617
uses: actions/checkout@v3
27-
2818
- name: "Install dotnet"
29-
3019
uses: actions/setup-dotnet@v3
31-
3220
with:
3321
dotnet-version: "8.0.x"
34-
3522
- name: "Restore packages"
36-
3723
run: dotnet restore ${{ env.SOLUTION_FILE }}
38-
3924
- name: "Build project"
40-
4125
run: dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release
42-
4326
- name: "Get Version"
44-
4527
id: version
46-
4728
uses: battila7/get-version-action@v2
48-
4929
- name: "Create output directory"
50-
5130
run: mkdir -p ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
52-
5331
shell: bash
54-
5532
- name: "Pack project"
56-
5733
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
58-
5934
- name: "List package directory contents"
60-
61-
run: dir ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
62-
35+
run: dir "${{ env.PACKAGE_OUTPUT_DIRECTORY }}"
6336
shell: cmd
64-
6537
- name: "Push package"
66-
6738
run: dotnet nuget push "${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE_URL }}

0 commit comments

Comments
 (0)