Skip to content

Merge pull request #11 from jwthomson/gh-actions #52

Merge pull request #11 from jwthomson/gh-actions

Merge pull request #11 from jwthomson/gh-actions #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/[email protected]
- name: Setup .NET
uses: actions/[email protected]
- name: Restore tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore
working-directory: ./fable/Feliz.ReactSelect
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./fable/Feliz.ReactSelect
- name: Publish
uses: brandedoutcast/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
with:
PROJECT_FILE_PATH: fable/Feliz.ReactSelect/Feliz.ReactSelect.fsproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}