Skip to content

chore: Bump Microsoft.NET.Test.Sdk from 18.0.0 to 18.0.1 (#103) #88

chore: Bump Microsoft.NET.Test.Sdk from 18.0.0 to 18.0.1 (#103)

chore: Bump Microsoft.NET.Test.Sdk from 18.0.0 to 18.0.1 (#103) #88

Workflow file for this run

name: Release
on:
push:
branches:
- "main"
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Clone repository
uses: actions/checkout@v5
with:
fetch-depth: "0"
- name: Use .NET
uses: actions/setup-dotnet@v5
- name: Run QA
run: make qa
- name: Get next version
id: get_next_version
uses: thenativeweb/get-next-version@2.7.1
- name: Create new version
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
git tag v${{steps.get_next_version.outputs.version}}
git push origin v${{steps.get_next_version.outputs.version}}
- name: Build artifacts
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
make build
- name: Publish new version
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
dotnet nuget push ./build/*.nupkg \
--api-key ${{ secrets.TOKEN_GITHUB_TO_NUGET_RW }} \
--source https://api.nuget.org/v3/index.json