-
Notifications
You must be signed in to change notification settings - Fork 22
57 lines (48 loc) · 1.52 KB
/
PublishMinorNuget.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
48
49
50
51
52
53
54
55
56
57
name: Publish Minor Nuget
on:
workflow_dispatch:
# push:
# branches:
# - main
# paths:
# - source/source/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: AzureDirectory
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Bump build version
id: bump
uses: vers-one/dotnet-project-version-updater@v1.5
with:
files: |
"**/source/**/Lucene.Net.Store.Azure.csproj"
version: bump-build
- name: Restore dependencies
run: dotnet restore source/AzureDirectory.sln
- name: Build
run: dotnet build source/AzureDirectory.sln -c Release --no-restore
- name: dotnet pack
run: |
dotnet pack --no-build ./source/AzureDirectory.sln -c Release -o packages --include-symbols --property WarningLevel=0
- name: Publish NuGet and symbols
id: nuget-push
uses: edumserrano/nuget-push@v1
with:
api-key: '${{ secrets.NUGET_KEY }}'
working-directory: 'packages'
fail-if-exists: false
- name: Commit new version changes
working-directory: ./AzureDirectory
run: |
git config --global user.name "Github Action"
git config --global user.email "tomlm@users.noreply.github.com"
git commit -a -m "Bumped version for published nuget artifacts"
git push