Skip to content

NuGet Deploy (Release) #15

NuGet Deploy (Release)

NuGet Deploy (Release) #15

name: NuGet Deploy (Release)
on:
workflow_dispatch:
env:
IsTagBuild: 'true'
BuildNumber: "${{ github.run_number }}"
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
include-prerelease: true
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build src/EdgeDB.Net.Driver/EdgeDB.Net.Driver.csproj --configuration Release --no-restore
- name: Pack
run: dotnet pack src/EdgeDB.Net.Driver/EdgeDB.Net.Driver.csproj -c Release -o ./artifacts --no-build
- name: Upload
run: dotnet nuget push ./artifacts/EdgeDB.Net.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://www.myget.org/F/edgedb-net/api/v2/package