Skip to content

Update dependency Aspire.Hosting to 8.2.2 (#29) #19

Update dependency Aspire.Hosting to 8.2.2 (#29)

Update dependency Aspire.Hosting to 8.2.2 (#29) #19

Workflow file for this run

name: CD
on:
push:
branches:
- 'release/**'
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'Aspire.Hosting.Krakend.sln'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Get Build Version
run: |
echo "GITHUB_REF=$GITHUB_REF"
branch_name=${GITHUB_REF#refs/heads/}
version=$(./build/GetBuildVersion.sh ${branch_name#*/})
echo "BUILD_VERSION=$version" >> $GITHUB_ENV
shell: bash
- name: Setup .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG /p:ContinuousIntegrationBuild=true -p:Version=$BUILD_VERSION
- name: Test
run: dotnet test --configuration $BUILD_CONFIG --no-restore --no-build --verbosity normal
- name: Publish
if: startsWith(github.ref, 'refs/heads/release')
run: |
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}}