Skip to content

Merge pull request #78 from Etherna/improve/MODM-177-mongo-driver-3 #172

Merge pull request #78 from Etherna/improve/MODM-177-mongo-driver-3

Merge pull request #78 from Etherna/improve/MODM-177-mongo-driver-3 #172

name: Unstable release deploy to MyGet
on:
push:
branches:
- dev
- 'hotfix/**'
- 'release/**'
jobs:
build-test-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run unit tests
run: dotnet test --configuration Release
- name: Generate nuget package
run: dotnet pack --configuration Release -o nupkg
- name: Push packages
run: dotnet nuget push './nupkg/*.nupkg' --api-key ${{secrets.MYGET_APIKEY}} --source https://www.myget.org/F/etherna/api/v3/index.json