This commit is contained in:
@@ -1,30 +1,29 @@
|
||||
name: Build Go Project
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: "1.22"
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
- name: Build
|
||||
run: |
|
||||
go mod download
|
||||
go build -o Sneedchat-Discord-Bridge .
|
||||
|
||||
- name: Build binary
|
||||
run: go build -o Sneedchat-Discord-Bridge .
|
||||
|
||||
- name: Upload build artifact
|
||||
- name: Archive build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Sneedchat-Discord-Bridge
|
||||
name: sneedchatdiscordbridge
|
||||
path: Sneedchat-Discord-Bridge
|
||||
|
||||
Reference in New Issue
Block a user