Skip to content

Create deploy-dev.yml #7

Create deploy-dev.yml

Create deploy-dev.yml #7

Workflow file for this run

name: Deploy
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: |
cd src
dotnet restore
- name: Build
run: |
cd src
dotnet build --configuration Release --no-restore
- name: Test
run: |
cd src
dotnet test --no-restore --verbosity normal
- name: Pack
run: |
cd src
dotnet pack --configuration Release
- name: Publish Core
run: |
cd src/Core
dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s ${{secrets.NUGET_SOURCE}} --skip-duplicate
- name: Publish Roslyn Plugin
run: |
cd src/Plugins/Roslyn
dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s ${{secrets.NUGET_SOURCE}} --skip-duplicate
- name: Publish Markdown Plugin
run: |
cd src/Plugins/Markdown
dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s ${{secrets.NUGET_SOURCE}} --skip-duplicate