mh_goadmin_server/.gitea/workflows/build.yaml
范俊成 1712850056
Some checks failed
Build and Deploy Golang Service / Build Golang Service (push) Failing after 12s
ci/cd
2023-09-21 17:41:54 +08:00

23 lines
447 B
YAML

name: Build and Deploy Golang Service
on: [push]
jobs:
build:
name: Build Golang Service
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 2.10 # 可以根据您的项目要求更改Go的版本
- name: Build
run: |
go mod download
go build -o dev-go-admin .