Skip to content

Commit

Permalink
more actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vpenades committed Apr 30, 2024
1 parent 407448e commit c324145
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/BuildPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ jobs:
- name: Pack sources
run: dotnet PackAsSourcesNuget src/build.sln --output . --append-sources-suffix true --version-suffix ${{env.VERSIONSUFFIXSHORT}}

- name: Archive code coverage results
- name: Archive nuget packages
uses: actions/upload-artifact@v4
with:
name: nuget packages
retention-days: 1
path: |
*.nupkg
*.snupkg
50 changes: 50 additions & 0 deletions .github/workflows/PublishAllPackagesToNuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish ALL packages to Nuget

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
name: nuget packages

# - name: Push to NuGet
# run: dotnet nuget push "*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Tensors.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Drawing.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Bitmaps.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Backends.ImageSharp.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Backends.GDI.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Backends.WPF.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Backends.GLTF.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Graphics.Backends.SpanBitmap.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Codecs.STB.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Codecs.MJPEG.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json

- name: Push to NuGet
run: dotnet nuget push "InteropTypes.Crypto.*.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json
17 changes: 17 additions & 0 deletions .github/workflows/PublishSourcePackagesToNuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish SOURCE packages to Nuget

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
name: nuget packages

- name: Push to NuGet
run: dotnet nuget push "*.Sources.nupkg" --api-key ${{secrets.InteropTypes_PublishToNuget}} --source https://api.nuget.org/v3/index.json
4 changes: 2 additions & 2 deletions InteropTypes.sln
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Directory.Packages.props = Directory.Packages.props
src\Shared\Encoded7BitInt32.cs = src\Shared\Encoded7BitInt32.cs
Project Hierarchy.dgml = Project Hierarchy.dgml
.github\workflows\publishBuiltPackagesToNuget.yml = .github\workflows\publishBuiltPackagesToNuget.yml
.github\workflows\publishSourcePackagesToNuget.yml = .github\workflows\publishSourcePackagesToNuget.yml
.github\workflows\PublishAllPackagesToNuget.yml = .github\workflows\PublishAllPackagesToNuget.yml
.github\workflows\PublishSourcePackagesToNuget.yml = .github\workflows\PublishSourcePackagesToNuget.yml
README.md = README.md
EndProjectSection
EndProject
Expand Down

0 comments on commit c324145

Please sign in to comment.