This commit is contained in:
Gui.H 2022-05-11 09:56:00 +08:00
parent 64e939cd9b
commit 8bf6e777ad
2 changed files with 20 additions and 21 deletions

View File

@ -1,19 +0,0 @@
version: 2.1
orbs:
win: circleci/windows@1.0.0
jobs:
build:
docker:
- image: mcr.microsoft.com/dotnet/sdk:5.0
environment:
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 0
steps:
- checkout
- run:
name: "Install project dependencies"
command: dotnet restore
- run:
name: "Run Build step"
command: dotnet publish -c Release -r win10-x64

View File

@ -31,7 +31,7 @@ jobs:
# Publish
- name: publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
uses: SpringHgui/publish-nuget@1.0.0
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: FastTunnel.Core/FastTunnel.Core.csproj
@ -62,7 +62,25 @@ jobs:
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
api:
name: publish-hosting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.*
# Publish
- name: publish on version change
id: publish_nuget
uses: SpringHgui/publish-nuget@1.0.0
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: FastTunnel.Hosting/FastTunnel.Hosting.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
api:
name: publish-api
runs-on: ubuntu-latest
@ -77,7 +95,7 @@ jobs:
# Publish
- name: publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
uses: SpringHgui/publish-nuget@1.0.0
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: FastTunnel.Api/FastTunnel.Api.csproj