Skip to content

Commit 8c3bf86

Browse files
committed
Fuck .NET and NuGet
Why am I still dealing with this absolute shitshow of technology where simple things don't work?
1 parent e68acd2 commit 8c3bf86

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ jobs:
5656
uses: actions/download-artifact@v1
5757
with:
5858
name: nupkg
59-
- name: Authenticate with GitHub Packages
60-
run: dotnet nuget add source $GITHUB_FEED -n GitHub -u $GITHUB_USER -p $GITHUB_TOKEN --store-password-in-clear-text
61-
- name: Push to GitHub Packages
62-
run: dotnet nuget push ./nupkg/*.nupkg --source GitHub --skip-duplicate
59+
- name: Push to GitHub Feed
60+
run: |
61+
for f in ./nupkg/*.nupkg
62+
do
63+
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_SOURCE
64+
done
6365
deploy:
6466
needs: build
6567
if: github.event_name == 'release'
@@ -78,9 +80,11 @@ jobs:
7880
VERSION="${VERSION//v}"
7981
echo Clean Version: $VERSION
8082
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj
81-
- name: Authenticate with GitHub Packages
82-
run: dotnet nuget add source $GITHUB_FEED -n GitHub -u $GITHUB_USER -p $GITHUB_TOKEN --store-password-in-clear-text
83-
- name: Push to GitHub Packages
84-
run: dotnet nuget push ./nupkg/*.nupkg --source GitHub --skip-duplicate
83+
- name: Push to GitHub Feed
84+
run: |
85+
for f in ./nupkg/*.nupkg
86+
do
87+
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_SOURCE
88+
done
8589
- name: Push to NuGet Feed
8690
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY

0 commit comments

Comments
 (0)