Skip to content

Commit 2cb1bf7

Browse files
committed
ci(workflow): change build-release to manual and add build-debug
- Updated the build-release pipeline to manual execution. - Added a new build-debug pipeline for development purposes.
1 parent f66cc78 commit 2cb1bf7

3 files changed

Lines changed: 29 additions & 4 deletions

File tree

.github/workflows/build-debug.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: build-debug
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
build-dotnet:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-dotnet@v4
18+
- run: dotnet build -c Debug
19+
- run: dotnet test -c Debug

.github/workflows/build-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: build-release
22

33
on:
4-
push:
5-
branches:
6-
- "main"
4+
workflow_dispatch:
5+
inputs:
6+
# nuget
7+
nuget-push:
8+
description: "nuget-push: true = upload nuget package. false = not upload"
9+
required: false
10+
type: boolean
11+
default: true
712

813
jobs:
914
test-dotnet:
@@ -84,6 +89,7 @@ jobs:
8489
8590
# Upload to NuGet
8691
- name: Upload to NuGet
92+
if: ${{ inputs.nuget-push }}
8793
run: |
8894
while read -r nuget_path; do
8995
if [[ "$nuget_path" == "" ]]; then continue; fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LocalPortFiltering.AspNetCore
22

3-
[![GitHub Actions](https://github.com/willysoft/LocalPortFiltering.AspNetCore/workflows/build-release/badge.svg)](https://github.com/willysoft/LocalPortFiltering.AspNetCore/actions) [![Releases](https://img.shields.io/github/v/release/willysoft/LocalPortFiltering.AspNetCore.svg)](https://github.com/willysoft/LocalPortFiltering.AspNetCore/releases) [![NuGet](https://img.shields.io/nuget/vpre/LocalPortFiltering.AspNetCore.svg)](https://www.nuget.org/packages/LocalPortFiltering.AspNetCore/)
3+
[![GitHub Actions](https://github.com/willysoft/LocalPortFiltering.AspNetCore/workflows/build-debug/badge.svg)](https://github.com/willysoft/LocalPortFiltering.AspNetCore/actions) [![GitHub Actions](https://github.com/willysoft/LocalPortFiltering.AspNetCore/workflows/build-release/badge.svg)](https://github.com/willysoft/LocalPortFiltering.AspNetCore/actions) [![Releases](https://img.shields.io/github/v/release/willysoft/LocalPortFiltering.AspNetCore.svg)](https://github.com/willysoft/LocalPortFiltering.AspNetCore/releases) [![NuGet](https://img.shields.io/nuget/vpre/LocalPortFiltering.AspNetCore.svg)](https://www.nuget.org/packages/LocalPortFiltering.AspNetCore/)
44

55
`LocalPortFiltering.AspNetCore` is a middleware and toolset for ASP.NET Core that enables filtering HTTP requests based on the local port. This package is ideal for scenarios where certain operations must be restricted to specific ports, enhancing application security and traffic control.
66

0 commit comments

Comments
 (0)