Update go.yml

This commit is contained in:
dexter
2021-08-18 16:44:32 +08:00
committed by GitHub
parent 7574a6ba6f
commit d01d254caa

View File

@@ -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"