misc: use ubuntu for packing. #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |