|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - main |
| 7 | + - ci |
7 | 8 | - release/* |
8 | | - tags: |
9 | | - - "v*" |
10 | | - pull_request: |
11 | | - branches: |
12 | | - - main |
13 | | - - release/* |
14 | | - types: [ labeled, opened, synchronize, reopened ] |
15 | 9 |
|
16 | 10 | jobs: |
17 | 11 | # Prime a single LFS cache and expose the exact key for the matrix |
|
69 | 63 | sdk-preview: true |
70 | 64 | runtime: -x64 |
71 | 65 | codecov: false |
72 | | - - os: macos-13 # macos-latest runs on arm64 runners where libgdiplus is unavailable |
73 | | - framework: net10.0 |
74 | | - sdk: 10.0.x |
75 | | - sdk-preview: true |
76 | | - runtime: -x64 |
77 | | - codecov: false |
78 | 66 | - os: macos-26 |
79 | 67 | framework: net10.0 |
80 | 68 | sdk: 10.0.x |
|
99 | 87 | sdk: 8.0.x |
100 | 88 | runtime: -x64 |
101 | 89 | codecov: false |
102 | | - - os: macos-13 # macos-latest runs on arm64 runners where libgdiplus is unavailable |
103 | | - framework: net8.0 |
104 | | - sdk: 8.0.x |
105 | | - runtime: -x64 |
106 | | - codecov: false |
107 | 90 | - os: macos-26 |
108 | 91 | framework: net8.0 |
109 | 92 | sdk: 8.0.x |
@@ -254,19 +237,22 @@ jobs: |
254 | 237 | key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }} |
255 | 238 | restore-keys: ${{ runner.os }}-nuget- |
256 | 239 |
|
257 | | - - name: DotNet Pack |
| 240 | + - name: Compute Version |
| 241 | + id: compute-version |
258 | 242 | shell: pwsh |
259 | | - run: ./ci-pack.ps1 |
| 243 | + run: | |
| 244 | + $date = Get-Date -Format "yyyy.MM.dd" |
| 245 | + $buildNumber = "${{ github.run_number }}" |
| 246 | + $version = "$date-mc.$buildNumber" |
| 247 | + echo "version=$version" >> $env:GITHUB_OUTPUT |
| 248 | + echo "Computed version: $version" |
260 | 249 |
|
261 | | - - name: Feedz Publish |
| 250 | + - name: DotNet Pack |
262 | 251 | shell: pwsh |
263 | | - run: | |
264 | | - dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/nuget/index.json --skip-duplicate |
265 | | - dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.FEEDZ_TOKEN}} -s https://f.feedz.io/sixlabors/sixlabors/symbols --skip-duplicate |
| 252 | + run: ./ci-pack.ps1 -version "${{ steps.compute-version.outputs.version }}" |
266 | 253 |
|
267 | | - - name: NuGet Publish |
268 | | - if: ${{ startsWith(github.ref, 'refs/tags/') }} |
| 254 | + - name: Publish Internal |
269 | 255 | shell: pwsh |
270 | 256 | run: | |
271 | | - dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate |
272 | | - dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate |
| 257 | + dotnet nuget push .\artifacts\*.nupkg -k ${{secrets.GITHUB_TOKEN}} -s https://nuget.pkg.github.com/mediaclip/index.json --skip-duplicate |
| 258 | + dotnet nuget push .\artifacts\*.snupkg -k ${{secrets.GITHUB_TOKEN}} -s https://nuget.pkg.github.com/mediaclip/index.json --skip-duplicate |
0 commit comments