Skip to content

Commit

Permalink
ci: update publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
sout233 committed Nov 26, 2024
1 parent d3ff5d8 commit b830057
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

0 comments on commit b830057

Please sign in to comment.