-
-
Notifications
You must be signed in to change notification settings - Fork 66
44 lines (42 loc) · 1.49 KB
/
publush.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
#https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/
name: Publish Packages
on:
# push:
# branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: nuget
env:
HUSKY: 0
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Publish Gridify
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/Gridify/Gridify.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Gridify.EntityFramework
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/Gridify.EntityFramework/Gridify.EntityFramework.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Gridify.Elasticsearch
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/Gridify.Elasticsearch/Gridify.Elasticsearch.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}