Skip to content

build

build #753

Workflow file for this run

name: build
on:
push:
tags: ['*']
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 1 * * SUN" # weekly on sunday
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: test
run: |
dotnet test
- name: build
run: |
dotnet build -c release
- name: push to nuget.org
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
run: dotnet nuget push '.\src\ReadLine\bin\Release\*.nupkg' --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}