Skip to content

Commit

Permalink
Merge pull request #36 from chickensoft-games/chore/ci-cd
Browse files Browse the repository at this point in the history
chore: ci/cd
  • Loading branch information
definitelyokay committed Jun 8, 2024
2 parents 6c0a20f + 4462e6a commit 2b74dbf
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 1,065 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,20 @@ jobs:
echo "package=$package" >> "$GITHUB_OUTPUT"
echo "📦 Found generator package: $package"
# - name: ✨ Create Release
# env:
# GITHUB_TOKEN: ${{ secrets.GH_BASIC }}
# run: |
# version="${{ steps.next-version.outputs.version }}"
# gh release create --title "v$version" --generate-notes "$version" \
# "${{ steps.package-path.outputs.package }}" "${{ steps.gen-package-path.outputs.package }}"
- name: ✨ Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_BASIC }}
run: |
version="${{ steps.next-version.outputs.version }}"
gh release create --title "v$version" --generate-notes "$version" \
"${{ steps.package-path.outputs.package }}" "${{ steps.gen-package-path.outputs.package }}"
# - name: 🛜 Publish to Nuget
# run: |
# dotnet nuget push "${{ steps.package-path.outputs.package }}" \
# --api-key "${{ secrets.NUGET_API_KEY }}" \
# --source "https://api.nuget.org/v3/index.json" --skip-duplicate
- name: 🛜 Publish to Nuget
run: |
dotnet nuget push "${{ steps.package-path.outputs.package }}" \
--api-key "${{ secrets.NUGET_API_KEY }}" \
--source "https://api.nuget.org/v3/index.json" --skip-duplicate
# dotnet nuget push "${{ steps.gen-package-path.outputs.package }}" \
# --api-key "${{ secrets.NUGET_API_KEY }}" \
# --source "https://api.nuget.org/v3/index.json" --skip-duplicate
dotnet nuget push "${{ steps.gen-package-path.outputs.package }}" \
--api-key "${{ secrets.NUGET_API_KEY }}" \
--source "https://api.nuget.org/v3/index.json" --skip-duplicate
17 changes: 15 additions & 2 deletions Chickensoft.LogicBlocks/src/ILogicBlockBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,23 @@ namespace Chickensoft.LogicBlocks;
/// <typeparam name="TState">Logic block state type.</typeparam>
public interface ILogicBlockBinding<TState>
where TState : StateLogic<TState> {
internal void MonitorInput<TInputType>(in TInputType input)
where TInputType : struct;
/// <summary>Called when the logic block receives an input.</summary>
/// <param name="input">Input received.</param>
/// <typeparam name="TInput">Type of the input.</typeparam>
internal void MonitorInput<TInput>(in TInput input)
where TInput : struct;

/// <summary>Called when the logic block changes state.</summary>
/// <param name="state">New state.</param>
internal void MonitorState(TState state);

/// <summary>Called when the logic block produces an output.</summary>
/// <param name="output">Output received.</param>
/// <typeparam name="TOutput">Type of the output.</typeparam>
internal void MonitorOutput<TOutput>(in TOutput output)
where TOutput : struct;

/// <summary>Called when the logic block encounters an exception.</summary>
/// <param name="exception">Exception encountered.</param>
internal void MonitorException(Exception exception);
}
Loading

0 comments on commit 2b74dbf

Please sign in to comment.