Skip to content

Commit 2b74dbf

Browse files
author
Joanna May
authored
Merge pull request #36 from chickensoft-games/chore/ci-cd
chore: ci/cd
2 parents 6c0a20f + 4462e6a commit 2b74dbf

File tree

3 files changed

+105
-1065
lines changed

3 files changed

+105
-1065
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,20 @@ jobs:
9393
echo "package=$package" >> "$GITHUB_OUTPUT"
9494
echo "📦 Found generator package: $package"
9595
96-
# - name: ✨ Create Release
97-
# env:
98-
# GITHUB_TOKEN: ${{ secrets.GH_BASIC }}
99-
# run: |
100-
# version="${{ steps.next-version.outputs.version }}"
101-
# gh release create --title "v$version" --generate-notes "$version" \
102-
# "${{ steps.package-path.outputs.package }}" "${{ steps.gen-package-path.outputs.package }}"
96+
- name: ✨ Create Release
97+
env:
98+
GITHUB_TOKEN: ${{ secrets.GH_BASIC }}
99+
run: |
100+
version="${{ steps.next-version.outputs.version }}"
101+
gh release create --title "v$version" --generate-notes "$version" \
102+
"${{ steps.package-path.outputs.package }}" "${{ steps.gen-package-path.outputs.package }}"
103103
104-
# - name: 🛜 Publish to Nuget
105-
# run: |
106-
# dotnet nuget push "${{ steps.package-path.outputs.package }}" \
107-
# --api-key "${{ secrets.NUGET_API_KEY }}" \
108-
# --source "https://api.nuget.org/v3/index.json" --skip-duplicate
104+
- name: 🛜 Publish to Nuget
105+
run: |
106+
dotnet nuget push "${{ steps.package-path.outputs.package }}" \
107+
--api-key "${{ secrets.NUGET_API_KEY }}" \
108+
--source "https://api.nuget.org/v3/index.json" --skip-duplicate
109109
110-
# dotnet nuget push "${{ steps.gen-package-path.outputs.package }}" \
111-
# --api-key "${{ secrets.NUGET_API_KEY }}" \
112-
# --source "https://api.nuget.org/v3/index.json" --skip-duplicate
110+
dotnet nuget push "${{ steps.gen-package-path.outputs.package }}" \
111+
--api-key "${{ secrets.NUGET_API_KEY }}" \
112+
--source "https://api.nuget.org/v3/index.json" --skip-duplicate

Chickensoft.LogicBlocks/src/ILogicBlockBinding.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,23 @@ namespace Chickensoft.LogicBlocks;
66
/// <typeparam name="TState">Logic block state type.</typeparam>
77
public interface ILogicBlockBinding<TState>
88
where TState : StateLogic<TState> {
9-
internal void MonitorInput<TInputType>(in TInputType input)
10-
where TInputType : struct;
9+
/// <summary>Called when the logic block receives an input.</summary>
10+
/// <param name="input">Input received.</param>
11+
/// <typeparam name="TInput">Type of the input.</typeparam>
12+
internal void MonitorInput<TInput>(in TInput input)
13+
where TInput : struct;
14+
15+
/// <summary>Called when the logic block changes state.</summary>
16+
/// <param name="state">New state.</param>
1117
internal void MonitorState(TState state);
18+
19+
/// <summary>Called when the logic block produces an output.</summary>
20+
/// <param name="output">Output received.</param>
21+
/// <typeparam name="TOutput">Type of the output.</typeparam>
1222
internal void MonitorOutput<TOutput>(in TOutput output)
1323
where TOutput : struct;
24+
25+
/// <summary>Called when the logic block encounters an exception.</summary>
26+
/// <param name="exception">Exception encountered.</param>
1427
internal void MonitorException(Exception exception);
1528
}

0 commit comments

Comments
 (0)