From 185db7f1c33ba10381be0f1cf64f602393aa9994 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Tue, 2 Mar 2021 22:23:51 +0800 Subject: [PATCH] build: repelase action --- .github/workflows/release.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ae9022..385920a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,8 +38,26 @@ jobs: - name: Release run: make build - - name: Upload assets - uses: actions/upload-artifact@v2 + - name: upload GNU/Linux coca to release + uses: svenstaro/upload-release-action@v1-release with: - name: coco - path: output/* + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: output/coca_linux + asset_name: coca_linux + tag: ${{ github.ref }} + + - name: upload macOS coca to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: output/coca_macos + asset_name: coca_macos + tag: ${{ github.ref }} + + - name: upload Windows coca to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: output/coca_windows.exe + asset_name: coca_windows.exe + tag: ${{ github.ref }}