Skip to content

Commit 16558a0

Browse files
committed
CI workflow update
1 parent 5fb8a01 commit 16558a0

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
files: '["*.csproj", "**/*.csproj"]'
3333
- uses: actions/setup-dotnet@v1
3434
with:
35-
dotnet-version: '3.1.202'
36-
source-url: https://nuget.pkg.github.com/egil/index.json
37-
env:
38-
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
dotnet-version: '3.1.202'
3936
- name: Building library
4037
run: |
4138
dotnet restore src
@@ -63,4 +60,11 @@ jobs:
6360
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/packages
6461
dotnet test ${GITHUB_WORKSPACE}/Test
6562
- name: Push packages to GitHub Package Registry
66-
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' --skip-duplicate
63+
run: |
64+
for f in ${GITHUB_WORKSPACE}/packages/*.nupkg
65+
do
66+
curl -vX PUT -u "egil:${{ secrets.GITHUB_TOKEN }}" -F package=@$f https://nuget.pkg.github.com/egil/
67+
done
68+
shell: bash
69+
# - name: Push packages to GitHub Package Registry
70+
# run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' --skip-duplicate

0 commit comments

Comments
 (0)