30 lines
578 B
YAML
30 lines
578 B
YAML
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
|