Builds
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: ["master"]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: "1.22"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
go mod download
|
||||||
|
go build -o Sneedchat-Discord-Bridge .
|
||||||
|
|
||||||
|
- name: Archive build artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: sneedchatdiscordbridge
|
||||||
|
path: Sneedchat-Discord-Bridge
|
||||||
Reference in New Issue
Block a user