From e9e8831ce74387071f9e53cd6c1ea032afa87ee7 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 14:42:43 +0800
Subject: [PATCH 01/14] Update build.yml
---
.github/workflows/build.yml | 64 +++++++++++++++++--------------------
1 file changed, 29 insertions(+), 35 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3149547..a95f7e8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,14 +1,17 @@
-name: Build FastGithub
+name: Build and Release FastGithub
on:
push:
- branches: [ main, master ]
- pull_request:
- branches: [ main, master ]
+ tags:
+ - 'v*'
+ workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ runtime: [win-x64, linux-x64, osx-x64]
steps:
- uses: actions/checkout@v4
@@ -19,39 +22,30 @@ jobs:
dotnet-version: '7.0.x'
- name: Restore dependencies
- run: dotnet restore FastGithub.sln
-
- - name: Build
- run: dotnet build FastGithub.sln --no-restore --configuration Release --verbosity quiet
-
- - name: Test
- run: dotnet test FastGithub.sln --no-build --configuration Release --verbosity normal
-
- build-multi-platform:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-latest, windows-latest, macos-latest]
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup .NET
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: '7.0.x'
+ run: dotnet restore
- - name: Build for ${{ matrix.os }}
+ - name: Build and Publish
run: |
- dotnet restore FastGithub.sln
- dotnet build FastGithub.sln --configuration Release --verbosity quiet
-
- - name: Publish artifacts
+ dotnet publish FastGithub/FastGithub.csproj \
+ -c Release \
+ -r ${{ matrix.runtime }} \
+ --self-contained true \
+ -p:PublishSingleFile=true \
+ -p:PublishTrimmed=true \
+ -o ./publish/${{ matrix.runtime }}
+
+ - name: Create Archive
run: |
- dotnet publish FastGithub/FastGithub.csproj -c Release -o ./publish/${{ matrix.os }}
-
- - name: Upload artifacts
+ cd ./publish/${{ matrix.runtime }}
+ if [[ "${{ matrix.runtime }}" == "win-x64" ]]; then
+ zip -r ../../fastgithub-${{ matrix.runtime }}.zip .
+ else
+ tar -czf ../../fastgithub-${{ matrix.runtime }}.tar.gz .
+ fi
+
+ - name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
- name: fastgithub-${{ matrix.os }}
- path: ./publish/${{ matrix.os }}
+ name: fastgithub-${{ matrix.runtime }}
+ path: |
+ fastgithub-${{ matrix.runtime }}.*
From 55843f42480f759dedfd0967a75cbb5e656cf8c3 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 14:43:55 +0800
Subject: [PATCH 02/14] Update build.yml
---
.github/workflows/build.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a95f7e8..92a5d6d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,9 +2,9 @@ name: Build and Release FastGithub
on:
push:
- tags:
- - 'v*'
- workflow_dispatch:
+ branches: [ main, master ]
+ pull_request:
+ branches: [ main, master ]
jobs:
build:
From 90ca53a8e9a92a62afc33b389e0025145eac085a Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 14:47:29 +0800
Subject: [PATCH 03/14] Update build.yml
---
.github/workflows/build.yml | 110 +++++++++++++++++++++---------------
1 file changed, 66 insertions(+), 44 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 92a5d6d..e10f301 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,31 +1,63 @@
-name: Build and Release FastGithub
-
-on:
- push:
- branches: [ main, master ]
- pull_request:
- branches: [ main, master ]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- runtime: [win-x64, linux-x64, osx-x64]
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup .NET
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: '7.0.x'
-
- - name: Restore dependencies
- run: dotnet restore
-
- - name: Build and Publish
- run: |
+name: Build FastGithub
+
+on:
+ push:
+ branches: [ main, master, not-80-port ]
+ pull_request:
+ branches: [ main, master, not-80-port ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '7.0.x'
+
+ - name: Restore dependencies
+ run: dotnet restore FastGithub.sln
+
+ - name: Build
+ run: dotnet build FastGithub.sln --no-restore --configuration Release --verbosity quiet
+
+ - name: Test
+ run: dotnet test FastGithub.sln --no-build --configuration Release --verbosity normal
+
+ build-multi-platform:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ include:
+ - os: ubuntu-latest
+ runtime: linux-x64
+ artifact-name: fastgithub-linux-x64
+ - os: windows-latest
+ runtime: win-x64
+ artifact-name: fastgithub-win-x64
+ - os: macos-latest
+ runtime: osx-x64
+ artifact-name: fastgithub-osx-x64
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '7.0.x'
+
+ - name: Build for ${{ matrix.os }}
+ run: |
+ dotnet restore FastGithub.sln
+ dotnet build FastGithub.sln --configuration Release --verbosity quiet
+
+ - name: Publish single-file artifacts
+ run: |
dotnet publish FastGithub/FastGithub.csproj \
-c Release \
-r ${{ matrix.runtime }} \
@@ -33,19 +65,9 @@ jobs:
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
-o ./publish/${{ matrix.runtime }}
-
- - name: Create Archive
- run: |
- cd ./publish/${{ matrix.runtime }}
- if [[ "${{ matrix.runtime }}" == "win-x64" ]]; then
- zip -r ../../fastgithub-${{ matrix.runtime }}.zip .
- else
- tar -czf ../../fastgithub-${{ matrix.runtime }}.tar.gz .
- fi
-
- - name: Upload Artifacts
- uses: actions/upload-artifact@v4
- with:
- name: fastgithub-${{ matrix.runtime }}
- path: |
- fastgithub-${{ matrix.runtime }}.*
+
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ matrix.artifact-name }}
+ path: ./publish/${{ matrix.runtime }}
From 3bd45bf769fc4d007586119f20cbc852a948919d Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 14:50:36 +0800
Subject: [PATCH 04/14] Update build.yml
---
.github/workflows/build.yml | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e10f301..b6a81bf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -57,14 +57,7 @@ jobs:
dotnet build FastGithub.sln --configuration Release --verbosity quiet
- name: Publish single-file artifacts
- run: |
- dotnet publish FastGithub/FastGithub.csproj \
- -c Release \
- -r ${{ matrix.runtime }} \
- --self-contained true \
- -p:PublishSingleFile=true \
- -p:PublishTrimmed=true \
- -o ./publish/${{ matrix.runtime }}
+ run: dotnet publish FastGithub/FastGithub.csproj -c Release -r ${{ matrix.runtime }} --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish/${{ matrix.runtime }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
From 988361296eaca4e7288f3038448f4785ff02ce0b Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:02:36 +0800
Subject: [PATCH 05/14] Update build.yml
---
.github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++----
1 file changed, 32 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b6a81bf..e03e9b5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -55,10 +55,38 @@ jobs:
run: |
dotnet restore FastGithub.sln
dotnet build FastGithub.sln --configuration Release --verbosity quiet
-
- - name: Publish single-file artifacts
- run: dotnet publish FastGithub/FastGithub.csproj -c Release -r ${{ matrix.runtime }} --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish/${{ matrix.runtime }}
-
+
+ - name: Publish single-file artifacts with UI
+ run: |
+ # 发布主程序
+ dotnet publish FastGithub/FastGithub.csproj \
+ -c Release \
+ -r ${{ matrix.runtime }} \
+ --self-contained true \
+ -p:PublishSingleFile=true \
+ -p:PublishTrimmed=true \
+ -o ./publish/${{ matrix.runtime }}
+
+ # 发布 UI (仅 Windows)
+ if [ "${{ matrix.runtime }}" == "win-x64" ]; then
+ dotnet publish FastGithub.UI/FastGithub.UI.csproj \
+ -c Release \
+ -r win-x64 \
+ --self-contained true \
+ -p:PublishSingleFile=true \
+ -o ./publish/${{ matrix.runtime }}
+ fi
+
+ - name: Copy additional files
+ run: |
+ # 复制必要的配置文件和资源
+ cp README.md ./publish/${{ matrix.runtime }}/
+ cp README.html ./publish/${{ matrix.runtime }}/
+ cp LICENSE ./publish/${{ matrix.runtime }}/
+
+ # 创建证书目录(运行时需要)
+ mkdir -p ./publish/${{ matrix.runtime }}/cacert
+
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
From 4a569bc5c5ef79f77117a131134d7311856946b6 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:08:30 +0800
Subject: [PATCH 06/14] Update build.yml
---
.github/workflows/build.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e03e9b5..84cb514 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -53,8 +53,8 @@ jobs:
- name: Build for ${{ matrix.os }}
run: |
- dotnet restore FastGithub.sln
- dotnet build FastGithub.sln --configuration Release --verbosity quiet
+ dotnet restore FastGithub.sln --verbosity quiet --nologo
+ dotnet build FastGithub.sln --configuration Release --verbosity quiet --nologo
- name: Publish single-file artifacts with UI
run: |
@@ -65,6 +65,8 @@ jobs:
--self-contained true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
+ --verbosity quiet \
+ --nologo \
-o ./publish/${{ matrix.runtime }}
# 发布 UI (仅 Windows)
From 9e52ea9fa6aaecbdfb53212331adfb5e1ec81f0e Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:13:48 +0800
Subject: [PATCH 07/14] Update build.yml
---
.github/workflows/build.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 84cb514..1ff0dfd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -57,6 +57,7 @@ jobs:
dotnet build FastGithub.sln --configuration Release --verbosity quiet --nologo
- name: Publish single-file artifacts with UI
+ shell: bash
run: |
# 发布主程序
dotnet publish FastGithub/FastGithub.csproj \
From 8436a32c2f28898112bf3b7b3aaf4718f85f1fb3 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:19:16 +0800
Subject: [PATCH 08/14] Update build.yml
---
.github/workflows/build.yml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1ff0dfd..1b90a4c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -74,9 +74,8 @@ jobs:
if [ "${{ matrix.runtime }}" == "win-x64" ]; then
dotnet publish FastGithub.UI/FastGithub.UI.csproj \
-c Release \
- -r win-x64 \
- --self-contained true \
- -p:PublishSingleFile=true \
+ --verbosity quiet \
+ --nologo \
-o ./publish/${{ matrix.runtime }}
fi
From 20f1736172ff2cf64e5ef6da40ac37dc4d4b157a Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:23:51 +0800
Subject: [PATCH 09/14] Update build.yml
---
.github/workflows/build.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1b90a4c..6f37ae9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -58,6 +58,12 @@ jobs:
- name: Publish single-file artifacts with UI
shell: bash
+ env:
+ DOTNET_CLI_TELEMETRY_OPTOUT: 1
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
+ DOTNET_NOLOGO: 1
+ DOTNET_CLI_UI_LANGUAGE: en
+ DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
run: |
# 发布主程序
dotnet publish FastGithub/FastGithub.csproj \
From b88eaec045226c14a6830692d110c1886fa3ad37 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 15:26:57 +0800
Subject: [PATCH 10/14] Update build.yml
---
.github/workflows/build.yml | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6f37ae9..ce2cb27 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,7 +16,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
- dotnet-version: '7.0.x'
+ dotnet-version: '7.0.x'
+ env:
+ DOTNET_NOLOGO: true
+ DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Restore dependencies
run: dotnet restore FastGithub.sln
@@ -58,12 +61,10 @@ jobs:
- name: Publish single-file artifacts with UI
shell: bash
- env:
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
- DOTNET_NOLOGO: 1
- DOTNET_CLI_UI_LANGUAGE: en
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
+ env:
+ DOTNET_NOLOGO: true
+ DOTNET_CLI_TELEMETRY_OPTOUT: true
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
run: |
# 发布主程序
dotnet publish FastGithub/FastGithub.csproj \
From 50cccc77353083bea0e1cecdb96b281b392cba90 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 21:00:43 +0800
Subject: [PATCH 11/14] Update build.yml
---
.github/workflows/build.yml | 141 +++++++++++++++---------------------
1 file changed, 60 insertions(+), 81 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ce2cb27..e30229c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,70 +1,63 @@
-name: Build FastGithub
-
-on:
- push:
- branches: [ main, master, not-80-port ]
- pull_request:
- branches: [ main, master, not-80-port ]
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup .NET
- uses: actions/setup-dotnet@v4
- with:
+name: Build FastGithub
+
+on:
+ push:
+ branches: [ main, master, not-80-port ]
+ pull_request:
+ branches: [ main, master, not-80-port ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '7.0.x'
+
+ - name: Restore dependencies
+ run: dotnet restore FastGithub.sln
+
+ - name: Build
+ run: dotnet build FastGithub.sln --no-restore --configuration Release
+
+ - name: Test
+ run: dotnet test FastGithub.sln --no-build --configuration Release --verbosity normal
+
+ build-multi-platform:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ include:
+ - os: ubuntu-latest
+ runtime: linux-x64
+ artifact-name: fastgithub-linux-x64
+ - os: windows-latest
+ runtime: win-x64
+ artifact-name: fastgithub-win-x64
+ - os: macos-latest
+ runtime: osx-x64
+ artifact-name: fastgithub-osx-x64
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
dotnet-version: '7.0.x'
- env:
- DOTNET_NOLOGO: true
- DOTNET_CLI_TELEMETRY_OPTOUT: true
-
- - name: Restore dependencies
- run: dotnet restore FastGithub.sln
-
- - name: Build
- run: dotnet build FastGithub.sln --no-restore --configuration Release --verbosity quiet
-
- - name: Test
- run: dotnet test FastGithub.sln --no-build --configuration Release --verbosity normal
-
- build-multi-platform:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-latest, windows-latest, macos-latest]
- include:
- - os: ubuntu-latest
- runtime: linux-x64
- artifact-name: fastgithub-linux-x64
- - os: windows-latest
- runtime: win-x64
- artifact-name: fastgithub-win-x64
- - os: macos-latest
- runtime: osx-x64
- artifact-name: fastgithub-osx-x64
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup .NET
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: '7.0.x'
-
- - name: Build for ${{ matrix.os }}
- run: |
- dotnet restore FastGithub.sln --verbosity quiet --nologo
- dotnet build FastGithub.sln --configuration Release --verbosity quiet --nologo
+
+ - name: Build for ${{ matrix.os }}
+ run: |
+ dotnet restore FastGithub.sln
+ dotnet build FastGithub.sln --configuration Release
- name: Publish single-file artifacts with UI
shell: bash
- env:
- DOTNET_NOLOGO: true
- DOTNET_CLI_TELEMETRY_OPTOUT: true
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
run: |
# 发布主程序
dotnet publish FastGithub/FastGithub.csproj \
@@ -73,31 +66,17 @@ jobs:
--self-contained true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
- --verbosity quiet \
- --nologo \
-o ./publish/${{ matrix.runtime }}
# 发布 UI (仅 Windows)
if [ "${{ matrix.runtime }}" == "win-x64" ]; then
dotnet publish FastGithub.UI/FastGithub.UI.csproj \
-c Release \
- --verbosity quiet \
- --nologo \
-o ./publish/${{ matrix.runtime }}
fi
- - name: Copy additional files
- run: |
- # 复制必要的配置文件和资源
- cp README.md ./publish/${{ matrix.runtime }}/
- cp README.html ./publish/${{ matrix.runtime }}/
- cp LICENSE ./publish/${{ matrix.runtime }}/
-
- # 创建证书目录(运行时需要)
- mkdir -p ./publish/${{ matrix.runtime }}/cacert
-
- - name: Upload artifacts
- uses: actions/upload-artifact@v4
- with:
- name: ${{ matrix.artifact-name }}
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ matrix.artifact-name }}
path: ./publish/${{ matrix.runtime }}
From 59aa7f0361979ca109d01f0f721ebede7776495e Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 21:21:43 +0800
Subject: [PATCH 12/14] Update GlobalListener.cs
---
FastGithub.Configuration/GlobalListener.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/FastGithub.Configuration/GlobalListener.cs b/FastGithub.Configuration/GlobalListener.cs
index 9724f05..506563c 100644
--- a/FastGithub.Configuration/GlobalListener.cs
+++ b/FastGithub.Configuration/GlobalListener.cs
@@ -27,12 +27,12 @@ public static class GlobalListener
///
/// http端口
///
- public static int HttpPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(80) : GetAvailableTcpPort(3880);
+ public static int HttpPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(3880) : GetAvailableTcpPort(3880);
///
/// https端口
///
- public static int HttpsPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(443) : GetAvailableTcpPort(38443);
+ public static int HttpsPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(38443) : GetAvailableTcpPort(38443);
///
/// 获取已监听的端口
From aa816bd81b08377cc016d7259c8e7d711b53a74a Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 21:25:30 +0800
Subject: [PATCH 13/14] Update build.yml
---
.github/workflows/build.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e30229c..55b4e11 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,9 +2,9 @@ name: Build FastGithub
on:
push:
- branches: [ main, master, not-80-port ]
+ branches: [ main, master ]
pull_request:
- branches: [ main, master, not-80-port ]
+ branches: [ main, master ]
jobs:
build:
From 96399dffe838d7bd0fe7beb6774d85900abb8665 Mon Sep 17 00:00:00 2001
From: loecom <154944277+loecom@users.noreply.github.com>
Date: Sun, 8 Jun 2025 21:42:04 +0800
Subject: [PATCH 14/14] Update GlobalListener.cs
---
FastGithub.Configuration/GlobalListener.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/FastGithub.Configuration/GlobalListener.cs b/FastGithub.Configuration/GlobalListener.cs
index 506563c..9724f05 100644
--- a/FastGithub.Configuration/GlobalListener.cs
+++ b/FastGithub.Configuration/GlobalListener.cs
@@ -27,12 +27,12 @@ public static class GlobalListener
///
/// http端口
///
- public static int HttpPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(3880) : GetAvailableTcpPort(3880);
+ public static int HttpPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(80) : GetAvailableTcpPort(3880);
///
/// https端口
///
- public static int HttpsPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(38443) : GetAvailableTcpPort(38443);
+ public static int HttpsPort { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(443) : GetAvailableTcpPort(38443);
///
/// 获取已监听的端口