From b8300575e1e91be3718b8aa455447c2bbde646ca Mon Sep 17 00:00:00 2001 From: sout_Nantang <2273466101@qq.com> Date: Tue, 26 Nov 2024 22:02:08 +0800 Subject: [PATCH] ci: update publish action --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f2d911..fc5b67c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,13 +24,13 @@ jobs: - name: Zip Published Files run: | $version = "${{ github.ref_name }}" - Compress-Archive -Path D:\a\Nalai\Nalai\Nalai\bin\Release\net8.0-windows\win-x64\publish\* -DestinationPath "Nalai_v$version_win_x64.zip" -Force + Compress-Archive -Path D:\a\Nalai\Nalai\Nalai\bin\Release\net8.0-windows\win-x64\publish\* -DestinationPath "D:\a\Nalai_v$version_win_x64.zip" -Force - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: Nalai-v${{ github.ref_name }}-win-x64 - path: Nalai_v${{ github.ref_name }}_win_x64.zip + path: 'D:\a\Nalai_v${{ github.ref_name }}_win_x64.zip' - name: Create Release id: create_release @@ -39,7 +39,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref_name }} - release_name: Release ${{ github.ref_name }} + release_name: ${{ github.ref_name }} draft: false prerelease: false @@ -49,6 +49,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: Nalai_v${{ github.ref_name }}_win_x64.zip + asset_path: 'D:\a\Nalai_v${{ github.ref_name }}_win_x64.zip' asset_name: Nalai_v${{ github.ref_name }}_win_x64.zip asset_content_type: application/zip