Skip to content

Commit

Permalink
Nuget fixes (microsoft#91)
Browse files Browse the repository at this point in the history
* modify output setting

* add outputs to child workflow

* rename + fix

* fix
  • Loading branch information
kostapetan authored Jul 10, 2024
1 parent 3663ec4 commit cd51e60
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test the nuget packages
name: '[OAgents nuget] Build and test'

on:
workflow_call:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Initialize version
name: '[OAgents nuget] Init context'

on:
workflow_call:
outputs:
version_suffix:
value: ${{ jobs.init.outputs.version_suffix }}

jobs:
build:
init:
runs-on: ubuntu-latest
outputs:
version_suffix: ${{ steps.set_version_suffix.outputs.VERSION_SUFFIX }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish the nuget packages
name: '[OAgents nuget] Publish nuget package'

on:
workflow_call:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release all nuget packages
name: '[OAgents nuget] Publish all packages'

on:
push:
Expand All @@ -11,27 +11,27 @@ permissions:
contents: read
jobs:
initialize-context:
uses: ./.github/workflows/initialize-context.yml
uses: ./.github/workflows/oagents-initialize-context.yml
secrets: inherit
build-test-packages:
uses: ./.github/workflows/build-test-packages.yml
uses: ./.github/workflows/oagents-build-test-packages.yml
needs: [initialize-context]
secrets: inherit
publish-core:
if: github.ref == 'refs/heads/main' # This job runs only if the push is to the main branch
# if: github.ref == 'refs/heads/main' # This job runs only if the push is to the main branch
needs: [build-test-packages, initialize-context]
uses: ./.github/workflows/publish-nuget.yml
uses: ./.github/workflows/oagents-publish-nuget.yml
with:
package-name: Oagents.Core
version-prefix: 0.0.2
version-suffix: ${{ needs.initialize-context.outputs.version_suffix }}
secrets: inherit
publish-orleans:
if: github.ref == 'refs/heads/main' # This job runs only if the push is to the main branch
# if: github.ref == 'refs/heads/main' # This job runs only if the push is to the main branch
needs: [build-test-packages, initialize-context]
uses: ./.github/workflows/publish-nuget.yml
uses: ./.github/workflows/oagents-publish-nuget.yml
with:
package-name: Oagents.Orleans
version-prefix: 0.0.2
version-suffix: ${{ needs.initialize-context.outputs.version_suffix }}"
version-suffix: ${{ needs.initialize-context.outputs.version_suffix }}
secrets: inherit

0 comments on commit cd51e60

Please sign in to comment.