From d01d254caaf69ea09b4e799927783c2fcd3a3efc Mon Sep 17 00:00:00 2001 From: dexter <178529795@qq.com> Date: Wed, 18 Aug 2021 16:44:32 +0800 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9842ec9..f9d930d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,10 +19,10 @@ jobs: go-version: 1.16 - name: Build - run: go build -o linux + run: go build -o m7s_linux_x86_64 - name: Tar - run: tar -zcvf linux.tgz linux config.toml + run: tar -zcvf linux.tgz m7s_linux_x86_64 config.toml - name: Deploy uses: garygrossgarten/github-action-scp@release @@ -32,6 +32,10 @@ jobs: host: monibuca.com username: root privateKey: ${{ secrets.PEM }} + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: "linux.tgz" build2: runs-on: windows-latest steps: @@ -43,10 +47,10 @@ jobs: go-version: 1.16 - name: Build - run: go build -o windows.exe + run: go build -o m7s_x86_64.exe - name: Tar - run: tar -zcvf windows.tgz windows.exe config.toml + run: tar -zcvf windows.tgz m7s_x86_64.exe config.toml - name: Deploy uses: garygrossgarten/github-action-scp@release @@ -56,6 +60,10 @@ jobs: host: monibuca.com username: root privateKey: ${{ secrets.PEM }} + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: "windows.tgz" build3: runs-on: macos-latest steps: @@ -67,10 +75,10 @@ jobs: go-version: 1.16 - name: Build - run: go build -o mac + run: go build -o m7s_darwin_x86_64 - name: Tar - run: tar -zcvf mac.tgz mac config.toml + run: tar -zcvf mac.tgz m7s_darwin_x86_64 config.toml - name: Deploy uses: garygrossgarten/github-action-scp@release @@ -80,3 +88,7 @@ jobs: host: monibuca.com username: root privateKey: ${{ secrets.PEM }} + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: "mac.tgz"