This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
name: Build Go project
|
||||
name: Build Go Project
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -11,21 +10,20 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.22"
|
||||
|
||||
- name: Build binary
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p dist
|
||||
go mod download
|
||||
go build -o dist/Sneedchat-Discord-Bridge .
|
||||
|
||||
- name: Upload Gitea artifact
|
||||
uses: https://gitea.com/actions/upload-artifact@v1
|
||||
- name: Upload artifact
|
||||
uses: https://gitea.com/gitea/actions/upload-artifact@main
|
||||
with:
|
||||
name: sneedchatdiscordbridge
|
||||
path: dist/Sneedchat-Discord-Bridge
|
||||
path: dist/*
|
||||
|
||||
Reference in New Issue
Block a user