@@ -12,21 +12,23 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v2
16
- - name : Install dependencies
15
+ - name : 📥 Checkout Code
16
+ uses : actions/checkout@v3
17
+
18
+ - name : 💉 Install dependencies
17
19
run : dotnet restore
18
20
19
- - name : Build
21
+ - name : 🛠️ Build
20
22
run : dotnet build --configuration Release --no-restore
21
23
22
- - name : Test
24
+ - name : ✅ Test
23
25
run : dotnet test --no-restore --verbosity normal
24
26
25
- - name : Package NuGet
27
+ - name : 📦 Package NuGet
26
28
run : dotnet pack --no-build --configuration Release
27
29
28
- - name : Upload Artifacts
29
- uses : actions/upload-artifact@v2
30
+ - name : 📤 Upload Artifacts
31
+ uses : actions/upload-artifact@v3
30
32
with :
31
33
name : nupkg
32
34
path : src/todo/nupkg/*.nupkg
@@ -38,10 +40,13 @@ jobs:
38
40
# only push nuget package for PRs merged to master
39
41
if : github.ref == 'refs/heads/main'
40
42
steps :
41
- - name : Download Artifacts
42
- uses : actions/download-artifact@v2
43
+ - name : 📥 Download Artifacts
44
+ uses : actions/download-artifact@v3
43
45
with :
44
46
name : nupkg
45
47
46
- - name : Publish NuGet to GitHub Packages
47
- run : dotnet nuget push "**/dotnet-todo.*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/rprouse/index.json --skip-duplicate --no-symbols
48
+ - name : 🔑 Authenticate to GitHub Packages
49
+ run : dotnet nuget add source --username rprouse --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/rprouse/index.json"
50
+
51
+ - name : 📤 Publish NuGet to GitHub Packages
52
+ run : dotnet nuget push "**/dotnet-todo.*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate --no-symbols
0 commit comments