From a46b2de8c50cf8a18d07a6e3ec2330a618f31829 Mon Sep 17 00:00:00 2001 From: Sid Sun Date: Sun, 9 Aug 2020 23:55:33 +0530 Subject: [PATCH] Fix GH actions Signed-off-by: Sid Sun --- .github/workflows/build-deploy.yml | 46 ++++++------------------------ 1 file changed, 9 insertions(+), 37 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 3e98c63..8ec4dad 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -169,6 +169,11 @@ jobs: with: name: built-binaries + - name: Commit changes + shell: bash + run: | + tar -cf Build.tar built-binaries debian-package + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -180,49 +185,16 @@ jobs: draft: true prerelease: false - - name: Upload Linux Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./built-binaries/seal-256-cfb_linux-amd64 - asset_name: seal-256-cfb_linux-amd64 - asset_content_type: application/x-executable - - - name: Upload Windows Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./built-binaries/seal-256-cfb_windows-amd64.exe - asset_name: seal-256-cfb_windows-amd64.exe - asset_content_type: application/x-dosexec - - - name: Upload Darwin Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./built-binaries/seal-256-cfb_darwin-amd64 - asset_name: seal-256-cfb_darwin-amd64 - asset_content_type: application/x-mach-binary - - - name: Upload Debian Package Release Asset + - name: Upload Release Assets id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./debian-package/seal-256-cfb_amd64.deb - asset_name: seal-256-cfb_amd64.deb - asset_content_type: application/vnd.debian.binary-package + asset_path: ./Build.tar + asset_name: binaries_and_debian_package.tar + asset_content_type: application/x-tar - name: Push to deployment shell: bash