-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (26 loc) · 959 Bytes
/
scheduledjobs_cd.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
name: ScheduledJobs CD
on:
push:
tags:
- scheduledjobs-v*.*.*
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: "7.0.x"
- name: Restore NuGet packages
run: dotnet restore ./src/Pilgaard.ScheduledJobs/Pilgaard.ScheduledJobs.csproj
- name: Build
run: dotnet build ./src/Pilgaard.ScheduledJobs/Pilgaard.ScheduledJobs.csproj -c Release --no-restore
- name: Package Nugets
run: dotnet pack ./src/Pilgaard.ScheduledJobs/Pilgaard.ScheduledJobs.csproj -c Release --no-build --no-restore --include-source
- name: Push Nugets
run: dotnet nuget push "**/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate