diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index af0cc20..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index a2bd542..312d2de 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -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