Skip to content

Merge pull request #2 from zjwshisb/feature/grpc #15

Merge pull request #2 from zjwshisb/feature/grpc

Merge pull request #2 from zjwshisb/feature/grpc #15

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build
run: CGO_ENABLED=0 go build
- name: Test
run: echo ${{ secrets.HOST }}
- name: scp
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: "gf-chat"
target: "/home/chat"
- name: restart service
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
supervisorctl restart all