|
41 | 41 | dotnet nuget push .\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NugetKey }} |
42 | 42 | dotnet nuget push .\bin\Release\*.nupkg -s github |
43 | 43 |
|
44 | | - PackOnLinux: |
| 44 | + PackOnWindowsArm64: |
| 45 | + |
| 46 | + runs-on: windows-11-arm |
| 47 | + |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v4 |
| 50 | + |
| 51 | + - name: Install dotnet tool |
| 52 | + run: dotnet tool install -g dotnetCampus.TagToVersion |
| 53 | + |
| 54 | + - name: Set tag to version |
| 55 | + run: dotnet TagToVersion -t ${{ github.ref }} |
| 56 | + |
| 57 | + - name: Build with dotnet |
| 58 | + run: dotnet build --configuration Release src\MediaConverters\MediaConverters.sln |
| 59 | + |
| 60 | + - name: Publish and Pack win-arm64 |
| 61 | + run: | |
| 62 | + dotnet publish -c Release -r win-x64 src\MediaConverters\MediaConverters.Tool\MediaConverters.Tool.csproj |
| 63 | + dotnet pack --configuration Release /p:RuntimeIdentifier=win-x64 src\MediaConverters\MediaConverters.RuntimeNuGet\MediaConverters.RuntimeNuGet.csproj |
| 64 | +
|
| 65 | + - name: Add private GitHub registry to NuGet |
| 66 | + run: | |
| 67 | + dotnet nuget add source --username dotnet-campus --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/dotnet-campus/index.json" |
| 68 | +
|
| 69 | + - name: Push generated package to NuGet |
| 70 | + run: | |
| 71 | + dotnet nuget push .\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NugetKey }} |
| 72 | + dotnet nuget push .\bin\Release\*.nupkg -s github |
| 73 | +
|
| 74 | + PackOnLinuxX64: |
45 | 75 |
|
46 | 76 | runs-on: ubuntu-latest |
47 | 77 |
|
@@ -71,6 +101,40 @@ jobs: |
71 | 101 | dotnet publish -c Release -r linux-x64 src/MediaConverters/MediaConverters.Tool/MediaConverters.Tool.csproj |
72 | 102 | dotnet pack --configuration Release /p:RuntimeIdentifier=linux-x64 src/MediaConverters/MediaConverters.RuntimeNuGet/MediaConverters.RuntimeNuGet.csproj |
73 | 103 |
|
| 104 | + - name: Add private GitHub registry to NuGet |
| 105 | + run: | |
| 106 | + dotnet nuget add source --username dotnet-campus --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/dotnet-campus/index.json" |
| 107 | +
|
| 108 | + - name: Push generated package to NuGet |
| 109 | + run: | |
| 110 | + dotnet nuget push ./bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NugetKey }} |
| 111 | + dotnet nuget push ./bin/Release/*.nupkg -s github |
| 112 | +
|
| 113 | + PackOnLinuxArm64: |
| 114 | + |
| 115 | + runs-on: ubuntu-24.04-arm |
| 116 | + |
| 117 | + steps: |
| 118 | + - uses: actions/checkout@v4 |
| 119 | + |
| 120 | + - name: Install dotnet tool |
| 121 | + run: dotnet tool install -g dotnetCampus.TagToVersion |
| 122 | + |
| 123 | + - name: Set tag to version |
| 124 | + run: dotnet TagToVersion -t ${{ github.ref }} |
| 125 | + |
| 126 | + - name: Setup .NET |
| 127 | + uses: actions/setup-dotnet@v1 |
| 128 | + with: |
| 129 | + dotnet-version: | |
| 130 | + 3.1.x |
| 131 | + 5.0.x |
| 132 | + 6.0.x |
| 133 | + 9.0.x |
| 134 | + |
| 135 | + - name: Build with dotnet |
| 136 | + run: dotnet build --configuration Release src/MediaConverters/MediaConverters.sln |
| 137 | + |
74 | 138 | - name: Publish and Pack linux-arm64 |
75 | 139 | run: | |
76 | 140 | dotnet publish -c Release -r linux-arm64 src/MediaConverters/MediaConverters.Tool/MediaConverters.Tool.csproj |
|
0 commit comments