File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - name : 📦 Pack
3838 run : dotnet pack ./src/FluentEmail.Graph/FluentEmail.Graph.csproj -c Release -o ./artifacts --no-build
3939
40- # - name: Artifacts
41- # uses: actions/upload-artifact@v2
42- # with:
43- # name: artifacts
44- # path: artifacts/**/*
40+ - name : 🔑 Add GitHub packages to nuget sources
41+ run : dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ESC-BV/index.json"
4542
4643 - name : 🚀 Publish to GitHub packages
47- run : dotnet nuget push "./artifacts/*.nupkg" --source "https://nuget.pkg. github.com/ESC-BV/index.json" --api-key "${{secrets.GITHUB_TOKEN}} "
48-
44+ run : dotnet nuget push "./artifacts/*.nupkg" --source "github"
45+
Original file line number Diff line number Diff line change @@ -12,35 +12,32 @@ jobs:
1212 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
1313
1414 steps :
15- - name : Checkout
15+ - name : ☁ Checkout
1616 uses : actions/checkout@v2
1717 with :
1818 fetch-depth : 0
1919
20- - name : .NET SDK
20+ - name : 👷 .NET SDK
2121 uses : actions/setup-dotnet@v1
2222 with :
2323 dotnet-version : " 6.0"
2424
25- - name : Install dependencies
25+ - name : ⬇ Install dependencies
2626 run : dotnet restore
2727
28- - name : Build
28+ - name : 🔨 Build
2929 run : dotnet build --configuration Release --no-restore
3030
3131 # # - name: Test
3232 # # run: dotnet test --no-restore --verbosity normal
3333
34- - name : Pack
34+ - name : 📦 Pack
3535 run : dotnet pack ./src/FluentEmail.Graph/FluentEmail.Graph.csproj -c Release -o ./artifacts --no-build
3636
37- - name : Artifacts
38- uses : actions/upload-artifact@v2
39- with :
40- name : artifacts
41- path : artifacts/**/*
37+ - name : 🔑 Add GitHub packages to nuget sources
38+ run : dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ESC-BV/index.json"
4239
43- - name : Push
40+ - name : 🚀 Push package to Github and NuGet
4441 run : |
45- dotnet nuget push "./artifacts/*.nupkg" --source "https://nuget.pkg. github.com/ESC-BV/index.json" --api-key "${{secrets.GITHUB_TOKEN}} "
42+ dotnet nuget push "./artifacts/*.nupkg" --source "github"
4643 dotnet nuget push "./artifacts/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key "${{secrets.NUGET_API_KEY}}"
You can’t perform that action at this time.
0 commit comments