|
16 | 16 |
|
17 | 17 | outputs: |
18 | 18 | version: ${{ steps.version.outputs.version }} |
19 | | - agent_framework_version: ${{ steps.version.outputs.agent_framework_version }} |
20 | 19 |
|
21 | 20 | steps: |
22 | 21 | - name: Checkout |
@@ -45,24 +44,16 @@ jobs: |
45 | 44 | echo "Failed to resolve package version from Directory.Build.props" |
46 | 45 | exit 1 |
47 | 46 | fi |
48 | | - AGENT_FRAMEWORK_VERSION="$VERSION-rc4" |
49 | 47 | echo "version=$VERSION" >> "$GITHUB_OUTPUT" |
50 | | - echo "agent_framework_version=$AGENT_FRAMEWORK_VERSION" >> "$GITHUB_OUTPUT" |
51 | 48 | echo "Version from Directory.Build.props: $VERSION" |
52 | | - echo "Agent Framework package version: $AGENT_FRAMEWORK_VERSION" |
53 | 49 |
|
54 | 50 | - name: Validate semantic version |
55 | 51 | run: | |
56 | 52 | VERSION="${{ steps.version.outputs.version }}" |
57 | | - AGENT_FRAMEWORK_VERSION="${{ steps.version.outputs.agent_framework_version }}" |
58 | 53 | if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then |
59 | 54 | echo "Version '$VERSION' is not a valid semantic version." |
60 | 55 | exit 1 |
61 | 56 | fi |
62 | | - if [[ ! "$AGENT_FRAMEWORK_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then |
63 | | - echo "Agent Framework version '$AGENT_FRAMEWORK_VERSION' is not a valid semantic version." |
64 | | - exit 1 |
65 | | - fi |
66 | 57 |
|
67 | 58 | - name: Restore dependencies |
68 | 59 | run: dotnet restore ManagedCode.CodexSharpSDK.slnx |
|
81 | 72 | mkdir -p ./artifacts |
82 | 73 | dotnet pack ManagedCode.CodexSharpSDK.slnx --configuration Release --no-build -p:IncludeSymbols=false -p:SymbolPackageFormat=snupkg --output ./artifacts |
83 | 74 |
|
84 | | - - name: Validate packed artifacts |
85 | | - run: | |
86 | | - VERSION="${{ steps.version.outputs.version }}" |
87 | | - AGENT_FRAMEWORK_VERSION="${{ steps.version.outputs.agent_framework_version }}" |
88 | | - find ./artifacts -maxdepth 1 -name '*.nupkg' | sort |
89 | | - test -f "./artifacts/ManagedCode.CodexSharpSDK.$VERSION.nupkg" |
90 | | - test -f "./artifacts/ManagedCode.CodexSharpSDK.Extensions.AI.$VERSION.nupkg" |
91 | | - test -f "./artifacts/ManagedCode.CodexSharpSDK.Extensions.AgentFramework.$AGENT_FRAMEWORK_VERSION.nupkg" |
92 | | -
|
93 | 75 | - name: Upload artifacts |
94 | 76 | uses: actions/upload-artifact@v4 |
95 | 77 | with: |
|
106 | 88 | outputs: |
107 | 89 | published: ${{ steps.publish.outputs.published }} |
108 | 90 | version: ${{ needs.build.outputs.version }} |
109 | | - agent_framework_version: ${{ needs.build.outputs.agent_framework_version }} |
110 | 91 |
|
111 | 92 | steps: |
112 | 93 | - name: Checkout |
@@ -214,7 +195,6 @@ jobs: |
214 | 195 | id: release_notes |
215 | 196 | run: | |
216 | 197 | VERSION="${{ needs.publish-nuget.outputs.version }}" |
217 | | - AGENT_FRAMEWORK_VERSION="${{ needs.publish-nuget.outputs.agent_framework_version }}" |
218 | 198 | CURRENT_TAG="v$VERSION" |
219 | 199 | PREVIOUS_TAG="${{ steps.prev_tag.outputs.previous_tag }}" |
220 | 200 |
|
|
0 commit comments