Skip to content

Commit

Permalink
Publish to GitHub package feed
Browse files Browse the repository at this point in the history
  • Loading branch information
wallymathieu committed Jan 8, 2024
1 parent df90803 commit 5bbec2f
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# GitHub Packages Feed settings
GITHUB_FEED: https://nuget.pkg.github.com/fsprojects
GITHUB_USER: fsprojects
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
push:
Expand Down Expand Up @@ -41,7 +37,9 @@ jobs:

package:
runs-on: windows-latest

permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
Expand Down Expand Up @@ -74,13 +72,14 @@ jobs:
with:
name: nupkg
path: ./bin/nupkg/*.nupkg
#- name: Push to GitHub Feed
# shell: bash
# run: |
# for f in ./bin/nupkg/*.nupkg
# do
# curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
# done
- name: Push to GitHub Feed
shell: bash
run: |
for f in ./bin/nupkg/*.nupkg
do
echo $f
dotnet nuget push $f -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
done
docs:
runs-on: windows-latest
Expand Down

0 comments on commit 5bbec2f

Please sign in to comment.