30 lines
525 B
YAML
30 lines
525 B
YAML
name: Build Go Project
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.23'
|
|
|
|
- name: Build Go Project
|
|
run: |
|
|
go build -o errorlog-server main.go
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: errorlog-server
|
|
path: errorlog-server
|