build: upload achcli binaries on each release
@@ -83,7 +83,7 @@ jobs:
TAG_REF_NAME: ${{ github.ref }}
REPOSITORY_NAME: ${{ github.repository }}
- - name: Upload Linux Binary
+ - name: Upload Linux Server Binary
if: runner.os == 'Linux'
uses: actions/upload-release-asset@v1
env:
@@ -94,7 +94,18 @@ jobs:
asset_name: ach-linux-amd64
asset_content_type: application/octet-stream
- - name: Upload macOS Binary
+ - name: Upload Linux achcli Binary
+ if: runner.os == 'Linux'
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.get_release_info.outputs.upload_url }}
+ asset_path: ./bin/achcli-linux-amd64
+ asset_name: achcli-linux-amd64
+ asset_content_type: application/octet-stream
+
+ - name: Upload macOS Server Binary
if: runner.os == 'macOS'
uses: actions/upload-release-asset@v1
env:
@@ -105,7 +116,18 @@ jobs:
asset_name: ach-darwin-amd64
asset_content_type: application/octet-stream
- - name: Upload Windows Binary
+ - name: Upload macOS achcli Binary
+ if: runner.os == 'macOS'
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.get_release_info.outputs.upload_url }}
+ asset_path: ./bin/achcli-darwin-amd64
+ asset_name: achcli-darwin-amd64
+ asset_content_type: application/octet-stream
+
+ - name: Upload Windows Server Binary
if: runner.os == 'Windows'
uses: actions/upload-release-asset@v1
env:
@@ -116,6 +138,17 @@ jobs:
asset_name: ach.exe
asset_content_type: application/octet-stream
+ - name: Upload Windows achcli Binary
+ if: runner.os == 'Windows'
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.get_release_info.outputs.upload_url }}
+ asset_path: ./bin/achcli.exe
+ asset_name: achcli.exe
+ asset_content_type: application/octet-stream
+
docker:
name: Docker
needs: [testing, create_release]
