Skip to content

Set up auto versioning #9

Set up auto versioning

Set up auto versioning #9

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
# Build, test, publish to nuget
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack --no-build --configuration Release CSharpScriptOperations/CSharpScriptOperations.csproj --output .
- name: Publish to NuGet
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate