From 35f50440e7bb6a850e5b991adc12b8d541eca65b Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Wed, 15 Apr 2020 21:34:53 +0200 Subject: [PATCH] try different action to do releases/assets --- .github/workflows/cd.yml | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index e32bc79f..8da319d7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -37,38 +37,15 @@ jobs: run: | echo ::set-output name=sha::"$(shasum -a 256 ./release/gitui-mac.tar.gz | awk '{printf $1}')" - - name: Create Release + - name: Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v1 + with: + #body: 'changelog ' + files: | + ./release/*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: false - prerelease: true - - - name: Upload Release Asset - if: matrix.os == 'macos-latest' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./release/gitui-mac.tar.gz - asset_name: gitui-mac.tar.gz - asset_content_type: application/gzip - - - name: Upload Release Asset - if: matrix.os == 'ubuntu-latest' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./release/gitui-linux.tar.gz - asset_name: gitui-linux.tar.gz - asset_content_type: application/gzip - name: Bump Brew if: matrix.os == 'macos-latest'