-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.23 KB
/
deploy-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy (dev)
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.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 /p:VersionSuffix=dev$(date +%Y%m%d%H%M)
- 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