diff --git a/.github/workflows/publish-pipeline.yml b/.github/workflows/publish-pipeline.yml index 0d7f844..025084d 100644 --- a/.github/workflows/publish-pipeline.yml +++ b/.github/workflows/publish-pipeline.yml @@ -26,6 +26,7 @@ jobs: VERSION=${{ github.ref_name }} echo "VERSION=${VERSION:1}" >> $GITHUB_ENV sed -i 's/[0-9].[0-9].[0-9]<\/Version>/${{ env.VERSION }}<\/Version>/g' MewtocolNet/MewtocolNet.csproj + less MewtocolNet/MewtocolNet.csproj - name: Setup .NET uses: actions/setup-dotnet@v2 @@ -35,15 +36,16 @@ jobs: - name: Restore dependencies run: dotnet restore - - name: Build - run: dotnet build "MewtocolNet" + - name: Build as ${{ env.VERSION }} + run: dotnet build "MewtocolNet" --no-incremental - - name: Pack + - name: Pack as ${{ env.VERSION }} run: dotnet pack "MewtocolNet" - - name: Publish + - name: Publish as ${{ env.VERSION }} run: | cd '${{ github.workspace }}/Builds' + ls -l dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json" - name: 'Upload artifacts to latest release'