Initial commit #2
Workflow file for this run
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: Main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Run tests | |
run: dotnet test | |
- name: Generate NuGet | |
run: | | |
cd src/ | |
dotnet pack -o package /p:Version=$(date "+%-Y.%-m.%-d") | |
- uses: actions/[email protected] | |
with: | |
name: nugets | |
path: src/package/*.nupkg |