-
-
Notifications
You must be signed in to change notification settings - Fork 23
54 lines (42 loc) · 1.51 KB
/
manual.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
name: manual
on:
pull_request:
branches:
- master
- feat/*
- feature/*
- release/*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: '6.x'
- name: Determine Version
id: version # step id used as reference for output values
uses: gittools/actions/gitversion/execute@v3.0.0
- name: Print GitVersion_FullSemVer
run: echo "The GitVersion_FullSemVer is ${{ env.GitVersion_FullSemVer }}"
- name: Print GitVersion_SemVer
run: echo "The GitVersion_SemVer is ${{ env.GitVersion_SemVer }}"
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore CronScheduler.sln
- name: Build
run: dotnet build CronScheduler.sln --configuration Release --no-restore /p:Version=${{ env.GitVersion_FullSemVer }}
- name: Test
run: dotnet test
- name: Publish NuGet package
run: |
dotnet pack CronScheduler.sln --configuration Release --no-build /p:PackageVersion=${{ env.GitVersion_FullSemVer }} /p:Version=${{ env.GitVersion_FullSemVer }}
dotnet nuget push **/*.nupkg --source https://f.feedz.io/kdcllc/cronscheduler-aspnetcore/nuget/index.json --api-key ${{ secrets.FEEDZ_API_KEY }} --skip-duplicate