Skip to content

Commit

Permalink
wip: add path to the download action
Browse files Browse the repository at this point in the history
  • Loading branch information
64J0 committed May 12, 2024
1 parent 5980036 commit 2f2101a
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: nupkg
path: ./nupkg
- name: Push to GitHub Feed
run: |
ls -lr ./nupkg/
Expand All @@ -78,33 +79,33 @@ jobs:
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
done
deploy:
name: Publish a release version
needs: build
if: github.event.release.prerelease == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
7.x
8.x
- name: Create Release NuGet package
run: |
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
echo Version: $VERSION
VERSION="${VERSION//v}"
echo Clean Version: $VERSION
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj
- name: Push to GitHub Feed
run: |
for f in ./nupkg/*.nupkg
do
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
done
- name: Push to NuGet Feed
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
# deploy:
# name: Publish a release version
# needs: build
# if: github.event.release.prerelease == false
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Setup .NET Core
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: |
# 6.x
# 7.x
# 8.x
# - name: Create Release NuGet package
# run: |
# arrTag=(${GITHUB_REF//\// })
# VERSION="${arrTag[2]}"
# echo Version: $VERSION
# VERSION="${VERSION//v}"
# echo Clean Version: $VERSION
# dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj
# - name: Push to GitHub Feed
# run: |
# for f in ./nupkg/*.nupkg
# do
# curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
# done
# - name: Push to NuGet Feed
# run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY

0 comments on commit 2f2101a

Please sign in to comment.