Skip to content

Refactor workflows to use reusable build workflow Extract common build steps (checkout, setup .NET, restore, build, test) into a reusable workflow to reduce duplication across CI files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> — SHA: d1b0dc04a5bb166770620a15b57f2d68c1409996 #64

Refactor workflows to use reusable build workflow Extract common build steps (checkout, setup .NET, restore, build, test) into a reusable workflow to reduce duplication across CI files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> — SHA: d1b0dc04a5bb166770620a15b57f2d68c1409996

Refactor workflows to use reusable build workflow Extract common build steps (checkout, setup .NET, restore, build, test) into a reusable workflow to reduce duplication across CI files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> — SHA: d1b0dc04a5bb166770620a15b57f2d68c1409996 #64

Workflow file for this run

name: main
run-name: "${{ github.event.head_commit.message }} — SHA: ${{ github.sha }}"
on:
push:
branches:
- main
workflow_dispatch:
env:
DOTNET_VERSION: '9.0'
jobs:
build:
uses: ./.github/workflows/build.yaml
with:
dotnet-version: '9.0'
publish-artifacts:
runs-on: ubuntu-latest
needs: build
environment: production
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 1
- name: Setup .NET
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore
- name: Pack
run: dotnet pack --configuration Release --no-restore --output artifacts
- name: Upload artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
with:
name: artifact
path: artifacts/