From f99af9511bf19f6d98588372380b5ca3e70e9ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Wei=C3=9F?= <72068105+Sandoun@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:03:44 +0200 Subject: [PATCH] Fix wrong ver --- .github/workflows/publish-pipeline.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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'