Skip to content

Merge pull request #28 from CompositionalIT/27-convert-react-props-to… #52

Merge pull request #28 from CompositionalIT/27-convert-react-props-to…

Merge pull request #28 from CompositionalIT/27-convert-react-props-to… #52

Workflow file for this run

name: Nuget-Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4.1.1
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 6.0.300
- name: Restore tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore
working-directory: ./src
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src
- name: Pack
run: dotnet pack --configuration Release --no-build --output .
working-directory: ./src
if: ${{ github.ref == 'refs/heads/main' }}
- name: Publish
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
working-directory: ./src
if: ${{ github.ref == 'refs/heads/main' }}