Skip to content

misc: use ubuntu for packing. #16

misc: use ubuntu for packing.

misc: use ubuntu for packing. #16

Workflow file for this run

name: Pack Nuget
on:
push:
branches: [ "action/pack" ]
pull_request:
branches: [ "action/pack" ]
jobs:
nuget:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Nuget Ursa
run: dotnet pack ./src/Ursa -o ./nugets
- name: Nuget Ursa.Themes.Semi
run: dotnet pack ./src/Ursa.Themes.Semi -o ./nugets
- name: Nuget Prism Extension
run: dotnet pack ./src/Ursa.PrismExtension -o ./nugets
- name: Nuget ReactiveUI Extension
run: dotnet pack ./src/Ursa.ReactiveUIExtension -o ./nugets
- name: Publish NuGet package
run: dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: nugets
path: ./nugets