Skip to content

Add AI-powered commit and PR description generation #15

Add AI-powered commit and PR description generation

Add AI-powered commit and PR description generation #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore
run: dotnet restore
- name: Check formatting
run: dotnet format --verify-no-changes
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-build
- name: Determine version
id: version
if: github.event_name == 'push'
run: |
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}"
else
VERSION="0.1.$(date -u +%Y%m%d).${{ github.run_number }}"
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Pack
if: github.event_name == 'push'
run: dotnet pack --no-build /p:Version=${{ steps.version.outputs.version }} -o ./artifacts
- name: Publish to NuGet
if: github.event_name == 'push'
run: |
dotnet nuget push ./artifacts/*.nupkg \
--source https://api.nuget.org/v3/index.json \
--api-key ${{ secrets.NUGET_API_KEY }}