From 883774fa3c2bbeda46ea18077bd5671ae49dcce3 Mon Sep 17 00:00:00 2001 From: Dissectum <124477333+Dissectum@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:50:02 +0800 Subject: [PATCH] fix --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f60bfa..bf28a17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,23 +81,19 @@ jobs: cache-dependency-path: '**/packages.lock.json' - run: dotnet restore --locked-mode - - run: ls ./src/MBA.Cli - - run: ls ./src/MBA.Cli/Properties - - run: ls ./src/MBA.Cli/Properties/PublishProfiles - - run: dotnet publish ${{ env.CSPROJ_PATH }} --no-restore -p:Version=${{ needs.meta.outputs.version }} -p:PublishProfile=${{ env.PUBXML_PATH }} - - name: Pack - shell: bash - run: | - cd ${{ env.PUBLISH_PATH }} - zip -r ../$f.zip ./* - - uses: actions/upload-artifact@v3 if: always() with: name: ${{ env.PUBLISH_NAME }} path: ${{ env.PUBLISH_PATH }} + + - name: Pack + #if: ${{ needs.meta.outputs.is_release == 'true' }} + run: | + cd ${{ env.PUBLISH_PATH }} + 7z a -r ../$f.zip ./* - uses: softprops/action-gh-release@v1 if: ${{ needs.meta.outputs.is_release == 'true' }}