Update to Kontent Delivery SDK v18 (and other pending updates) #121
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetch all history for all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/setup@v0.9.11 | |
with: | |
versionSpec: '5.x' | |
- name: Use GitVersion | |
id: gitversion # step id used as reference for output values | |
uses: gittools/actions/gitversion/execute@v0.9.11 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
8.x | |
- name: Build with dotnet | |
run: dotnet build --configuration Release -p:Version=${{ steps.gitversion.outputs.nuGetVersionV2 }} | |
- name: Test with dotnet | |
run: dotnet test --configuration Release --no-build | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: nuget | |
path: "**/Kontent.Statiq*.s?nupkg" | |
outputs: | |
nugetversion: ${{ steps.gitversion.outputs.nuGetVersionV2 }} | |
prerelease: ${{ steps.gitversion.outputs.preReleaseTag != '' }} |