Skip to content

Commit

Permalink
added upload to build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
raphtlw committed Sep 23, 2020
1 parent 133df20 commit 11acc01
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
40 changes: 35 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,38 @@ jobs:
name: build
- name: Package
run: |
# zip -r linux.zip make/deb/x64/symbit* make/rpm/x64/symbit* make/zip/linux/x64/*.zip
# zip -r windows.zip out/make
ls -lah
zip -r linux.zip deb/x64/*.deb rpm/x64/symbit*.rpm zip/linux/x64/*.zip
zip -r macos.zip zip/darwin/x64/*.zip *.dmg
zip -r windows.zip squirrel.windows/x64/*
- name: Get release
uses: bruceadams/[email protected]
id: get_release
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload linux package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: linux.zip
asset_name: linux.zip
asset_content_type: application/zip
- name: Upload macOS package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: macos.zip
asset_name: macos.zip
asset_content_type: application/zip
- name: Upload windows package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: windows.zip
asset_name: windows.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
## Install

- [Linux](https://github.com/raphtlw/symbit/releases/latest/download/linux.zip)
<!-- - [Mac](https://github.com/raphtlw/symbit/releases/latest/download/macos.zip) -->
- [Mac](https://github.com/raphtlw/symbit/releases/latest/download/macos.zip)
- [Windows](https://github.com/raphtlw/symbit/releases/latest/download/windows.zip)

## Usage
Expand Down

0 comments on commit 11acc01

Please sign in to comment.