forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 2.17 KB
/
copilot-build-plugins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: copilot-build-plugins
on:
workflow_dispatch:
pull_request:
branches: ["main"]
paths:
- "plugins/**"
workflow_call:
outputs:
artifact:
description: "The name of the uploaded plugin artifacts."
value: ${{jobs.plugins.outputs.artifact}}
permissions:
contents: read
jobs:
plugins:
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 Plugins
run: |
scripts\deploy\package-plugins.ps1 `
-BuildConfiguration Release `
-DotNetFramework net6.0 `
-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 packages to artifacts
uses: actions/upload-artifact@v4
with:
name: copilotchat-plugins-${{ steps.versiontag.outputs.versiontag }}
path: ${{ github.workspace }}\scripts\deploy\out\plugins
- name: "Set outputs"
id: artifactoutput
run: Write-Output "artifactname=copilotchat-plugins-${{ steps.versiontag.outputs.versiontag }}" >> $env:GITHUB_OUTPUT