Skip to content

Commit ed57f0d

Browse files
committed
Merge branch 'master' of github.com:casjr13/EncompassRest
2 parents fb7857b + 347e348 commit ed57f0d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- created
1010

11+
defaults:
12+
run:
13+
working-directory: ./src
14+
1115
jobs:
1216
build:
1317

@@ -18,16 +22,15 @@ jobs:
1822
- name: Setup .NET
1923
uses: actions/setup-dotnet@v3
2024
with:
21-
dotnet-version: '3.1.x'
22-
- name: Setup nuget sources
23-
working-directory: ./src
24-
run: nuget sources add -Name Github -Source https://nuget.pkg.github.com/iteam-software/index.json -Username casjr13 -Password ${{ secrets.GPR_CASJR13_PAT }} -StorePasswordInClearText
25+
dotnet-version: '3.1'
26+
#- name: Setup nuget sources
27+
# working-directory: ./src
28+
# run: nuget sources add -Name Github -Source https://nuget.pkg.github.com/iteam-software/index.json -Username casjr13 -Password ${{ secrets.GPR_CASJR13_PAT }} -StorePasswordInClearText
2529
- name: Restore Packages
26-
working-directory: ./src
2730
run: dotnet restore
31+
- name: Build
32+
run: dotnet build EncompassRest -c Release --no-restore
2833
- name: Pack with dotnet
29-
working-directory: ./src
30-
run: dotnet pack -o ./packed -c Release /p:Version=${GITHUB_REF##*/}
34+
run: dotnet pack EncompassRest -c Release -o ./packed --no-build /p:Version=${GITHUB_REF##*/}
3135
- name: Push with nuget
32-
working-directory: ./src
33-
run: nuget push ./packed/ -Source Github -SkipDuplicate
36+
run: dotnet nuget push ./packed/*.nupkg -k ${{ secrets.GPR_CASJR13_PAT }} -s https://nuget.pkg.github.com/iteam-software/index.json

0 commit comments

Comments
 (0)