Skip to content

v1.3.0

v1.3.0 #41

name: Publish Nuget Package
on:
release:
types: [released,prereleased]
branches: [ master,main ]
jobs:
publish-with-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: build
run: dotnet build -c Release ./src/Juxtapose/Juxtapose.csproj
- name: pack
run: dotnet pack -c Release -o ./output
- name: push package
shell: pwsh
working-directory: ./output
run: Get-ChildItem -File -Filter '*.nupkg' | ForEach-Object { dotnet nuget push $_ -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --no-service-endpoint --skip-duplicate; dotnet nuget push $_ -k ${{secrets.NUGET_GITHUB_KEY}} -s https://nuget.pkg.github.com/StratosBlue/index.json --no-service-endpoint --skip-duplicate; }