From 11acc0165c94160c67ae718f26ec0f5b9f2d7b87 Mon Sep 17 00:00:00 2001 From: Raphael Tang Date: Wed, 23 Sep 2020 17:32:10 +0800 Subject: [PATCH] added upload to build pipeline --- .github/workflows/build.yml | 40 ++++++++++++++++++++++++++++++++----- README.md | 2 +- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 522736e..4f4e34d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/get-release@v1.2.1 + 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 \ No newline at end of file diff --git a/README.md b/README.md index 39d1e9a..d9c21e9 100644 --- a/README.md +++ b/README.md @@ -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) - [Windows](https://github.com/raphtlw/symbit/releases/latest/download/windows.zip) ## Usage