Skip to content

0.6.8

0.6.8 #27

Workflow file for this run

name: Release to NuGet
on:
release:
types: [published]
env:
COREPROJECTNAME: "ModEndpoints.Core"
ENDPOINTSPROJECTNAME: "ModEndpoints"
REMOTESERVICESCOREPROJECTNAME: "ModEndpoints.RemoteServices.Core"
REMOTESERVICESPROJECTNAME: "ModEndpoints.RemoteServices"
ENDPOINTSTESTPROJECTNAME: "ModEndpoints.Tests"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build ${{ env.REMOTESERVICESCOREPROJECTNAME }} --configuration Release --no-restore
working-directory: src
- name: Build
run: dotnet build ${{ env.REMOTESERVICESPROJECTNAME }} --configuration Release --no-restore
working-directory: src
- name: Build
run: dotnet build ${{ env.COREPROJECTNAME }} --configuration Release --no-restore
working-directory: src
- name: Build
run: dotnet build ${{ env.ENDPOINTSPROJECTNAME }} --configuration Release --no-restore
working-directory: src
- name: Test
run: dotnet test ${{ env.ENDPOINTSTESTPROJECTNAME }} --no-restore --verbosity normal
working-directory: tests
- name: Package nuget remote services core
run: dotnet pack ${{ env.REMOTESERVICESCOREPROJECTNAME }} --configuration Release --no-build -o:package
working-directory: src
- name: Package nuget remote services
run: dotnet pack ${{ env.REMOTESERVICESPROJECTNAME }} --configuration Release --no-build -o:package
working-directory: src
- name: Package nuget endpoints core
run: dotnet pack ${{ env.COREPROJECTNAME }} --configuration Release --no-build -o:package
working-directory: src
- name: Package nuget endpoints
run: dotnet pack ${{ env.ENDPOINTSPROJECTNAME }} --configuration Release --no-build -o:package
working-directory: src
- name: Push to NuGet
run: dotnet nuget push ./package/*.nupkg --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
working-directory: src