Skip to content

Upgrading Hangfire.PostgreSql to 1.20.8 #142

Upgrading Hangfire.PostgreSql to 1.20.8

Upgrading Hangfire.PostgreSql to 1.20.8 #142

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup SQL Server (choco)
shell: pwsh
run: |
choco install sql-server-express --no-progress
- name: Setup PostgreSQL (choco)
shell: pwsh
run: |
choco install postgresql13 --no-progress --params '/Password:root'
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup nuget Hangfire.Pro source
run: |
dotnet nuget remove source "HangfirePro"
dotnet nuget add source https://nuget.hangfire.io/nuget/hangfire-pro/v3/index.json -u ${{ secrets.HANGFIRE_PRO_USERNAME }} -p ${{ secrets.HANGFIRE_PRO_PASSWORD }} --store-password-in-clear-text
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release "-p:Version=3.0.${{ github.run_number }}"
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Push to nuget.org
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json