Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ci/cd #36

Merged
merged 3 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading