Skip to content

Version bump fix (#16) #107

Version bump fix (#16)

Version bump fix (#16) #107

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: windows-latest
env:
src-dir: ./src
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6
- name: Setup SQL Server
uses: Amadevus/pwsh-script@v1.0.0
id: scripta
with:
script: |
Write-Host "Downloading"
Import-Module BitsTransfer
Start-BitsTransfer -Source https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi -Destination SqlLocalDB.msi
Write-Host "Installing"
Start-Process -FilePath "SqlLocalDB.msi" -Wait -ArgumentList "/qn", "/norestart", "/l*v SqlLocalDBInstall.log", "IACCEPTSQLLOCALDBLICENSETERMS=YES";
Write-Host "Checking"
sqlcmd -l 60 -S "(localdb)\MSSQLLocalDB" -Q "SELECT @@VERSION;"
- name: Install dependencies
run: dotnet restore
working-directory: ${{env.src-dir}}
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ${{env.src-dir}}
- name: Test
run: dotnet test --no-restore --verbosity normal
working-directory: ${{env.src-dir}}
- name: Publish Package
run: dotnet nuget push "**/*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{env.src-dir}}
- name: Publish Symbols
run: dotnet nuget push "**/*.snupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{env.src-dir}}