Some checks failed
Build and Deploy Golang Service / Build Golang Service (push) Failing after 12s
23 lines
447 B
YAML
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 .
|