Skip to content

Commit 57bb299

Browse files
committed
fix workflow
1 parent ad9c665 commit 57bb299

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
- name: Publish
2525
run: dotnet publish -c Release --self-contained true -p:PublishSingleFile=true
2626
- name: Create Zip
27-
run: |
28-
cd ${{ env.output }}
29-
zip release *.*
27+
run: Compress-Archive -Path ${{ env.output }}* -DestinationPath ${{ env.output }}App.zip
28+
shell: pwsh
3029
- name: Create Release
3130
id: create_release
3231
uses: actions/create-release@v1.0.0
@@ -44,6 +43,6 @@ jobs:
4443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4544
with:
4645
upload_url: ${{ steps.create_release.outputs.upload_url }}
47-
asset_path: ./${{ env.output }}release.zip
46+
asset_path: ./${{ env.output }}App.zip
4847
asset_name: App.zip
4948
asset_content_type: application/zip

0 commit comments

Comments
 (0)