Skip to content

Prepare release 0.1.0-beta #6

Prepare release 0.1.0-beta

Prepare release 0.1.0-beta #6

Workflow file for this run

name: 🍿 On Push Tag
run-name: Prepare release ${{github.ref_name}}
on:
push:
tags:
- '**'
permissions:
contents: write
packages: write
env:
BUILD_VERSION: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 9.0.100
- name: Extract Version Suffix
run: |
s=${{github.ref_name}}
pat="([^-]*)-?([^-]*)"
[[ $s =~ $pat ]]
BUILD_VERSION_SUFFIX=${BASH_REMATCH[2]}
echo "BUILD_VERSION_SUFFIX=$BUILD_VERSION_SUFFIX" >> $GITHUB_ENV
echo "BUILD_VERSION_SUFFIX: $BUILD_VERSION_SUFFIX"
- name: Build & Test
run: make test config=Release version=${{ env.BUILD_VERSION }}
- name: Create Test Report
uses: magnusopera/test-reporter@main
if: always()
with:
name: Unit Tests Report
path: '**/*.trx'
reporter: dotnet-trx
fail-on-error: false
fail-on-empty: false
use-actions-summary: true
- name: Build NuGet
run: make nuget config=Release version=${{ env.BUILD_VERSION }}
- name: Create GitHub Release
uses: softprops/[email protected]
with:
draft: true
prerelease: ${{ env.BUILD_VERSION_SUFFIX != '' }}
generate_release_notes: true
files:
.out/*.nupkg