-
-
Notifications
You must be signed in to change notification settings - Fork 82
50 lines (46 loc) · 1.57 KB
/
publush.yml
File metadata and controls
50 lines (46 loc) · 1.57 KB
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
48
49
50
#https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/
name: Publish Packages
on:
# push:
# branches: [ master ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment: nuget
permissions:
contents: write
env:
HUSKY: 0
steps:
- uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.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/publish-nuget@v3.1.0
with:
PROJECT_FILE_PATH: src/Gridify/Gridify.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish Gridify.EntityFramework
uses: alirezanet/publish-nuget@v3.1.0
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/publish-nuget@v3.1.0
with:
PROJECT_FILE_PATH: src/Gridify.Elasticsearch/Gridify.Elasticsearch.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}