Merge pull request #357 from jetelain/prompt-unsaved-document #91
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Version | |
uses: aarnott/[email protected] | |
with: | |
setAllVars: true | |
- name: Pack | |
run: dotnet pack src --configuration Release --output build/packages | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: Packages | |
path: build/packages | |
- name: Publish to NuGet | |
shell: bash | |
if: github.event_name == 'push' | |
run: dotnet nuget push build/packages/**/*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}} |