Skip to content

Sample app

Sample app #1

name: copilot-build-memorypipeline
on:
workflow_dispatch:
pull_request:
branches: ["main"]
paths:
- "memorypipeline/**"
workflow_call:
outputs:
artifact:
description: "The name of the uploaded memory pipeline artifact."
value: ${{jobs.memory-pipeline.outputs.artifact}}
permissions:
contents: read
jobs:
memory-pipeline:
runs-on: windows-latest
env:
NUGET_CERT_REVOCATION_MODE: offline
outputs:
artifact: ${{steps.artifactoutput.outputs.artifactname}}
steps:
- uses: actions/checkout@v4
with:
clean: true
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v1
with:
versionSpec: "5.x"
- name: Determine version
id: gitversion
uses: gittools/actions/gitversion/execute@v1
- name: Set version tag
id: versiontag
run: |
$VERSION_TAG = "${{ steps.gitversion.outputs.Major }}."
$VERSION_TAG += "${{ steps.gitversion.outputs.Minor }}."
$VERSION_TAG += "${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
echo $VERSION_TAG
Write-Output "versiontag=$VERSION_TAG" >> $env:GITHUB_OUTPUT
- name: Set .Net Core version
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Package Copilot Chat Memory Pipeline
run: |
scripts\deploy\package-memorypipeline.ps1 -Configuration Release -DotnetFramework net6.0 -TargetRuntime win-x64 -OutputDirectory ${{ github.workspace }}\scripts\deploy -Version ${{ steps.versiontag.outputs.versiontag }} -InformationalVersion "Built from commit ${{ steps.gitversion.outputs.ShortSha }} on $(Get-Date -Format "yyyy-MM-dd")"
- name: Upload package to artifacts
uses: actions/upload-artifact@v4
with:
name: copilotchat-memorypipeline-${{ steps.versiontag.outputs.versiontag }}
path: ${{ github.workspace }}\scripts\deploy\out\memorypipeline.zip
- name: "Set outputs"
id: artifactoutput
run: Write-Output "artifactname=copilotchat-memorypipeline-${{ steps.versiontag.outputs.versiontag }}" >> $env:GITHUB_OUTPUT