Files
Ursa.Avalonia/.github/workflows/pack.yml
rabbitism 7f88cc6b10 feat: 1. add bold font.
2. update demo avalonia version to 11.2.1
3. add nuget publish action.
2024-11-15 21:28:37 +08:00

36 lines
962 B
YAML

name: Pack Nuget
on:
push:
branches: [ "action/pack" ]
pull_request:
branches: [ "action/pack" ]
jobs:
nuget:
runs-on: windows-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