Skip to content

Commit

Permalink
Fix windows CD zip
Browse files Browse the repository at this point in the history
  • Loading branch information
abc873693 committed Feb 20, 2021
1 parent 090fbb1 commit 91da2a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
- run: flutter pub get
- name: Build windows
run: flutter build windows --release
- name: 'Tar files'
run: tar -cvf windows.tar build\windows\runner\Release\
- name: 'Zip files'
run: powershell Compress-Archive build\windows\runner\Release\ windows.zip
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: windows-artifact
path: windows.tar
path: windows.zip

github_release:
name: Create GitHub Release
Expand All @@ -93,5 +93,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_name: windows.tar
asset_content_type: application/tar
asset_name: windows.zip
asset_content_type: application/zip

0 comments on commit 91da2a3

Please sign in to comment.