diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index 784a473..7fea2ad 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -54,8 +54,23 @@ jobs: runs-on: [self-hosted, linux, x64, womed-local-linux] steps: - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build "MewtocolNet" + + - name: Pack + run: dotnet pack "MewtocolNet" + - name: Publish run: | - cd "./Builds" + cd '${{ github.workspace }}/Builds' dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json" #dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source "https://api.nuget.org"