This commit is contained in:
29
.gitea/workflows/build.yml
Normal file
29
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
Reference in New Issue
Block a user