Deduplicate CronJob Occurrences #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BackgroundJobs CD | |
on: | |
push: | |
tags: | |
- backgroundjobs-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.BackgroundJobs/Pilgaard.BackgroundJobs.csproj | |
- name: Build | |
run: dotnet build ./src/Pilgaard.BackgroundJobs/Pilgaard.BackgroundJobs.csproj -c Release --no-restore | |
- name: Package Nugets | |
run: dotnet pack ./src/Pilgaard.BackgroundJobs/Pilgaard.BackgroundJobs.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 |