mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
Update go.yml
This commit is contained in:
24
.github/workflows/go.yml
vendored
24
.github/workflows/go.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user