Skip to content

Create build.yml

Create build.yml #6

Workflow file for this run

name: Build
on:
push:
pull_request:
branches:
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build
run: go build -o 4u-online .
- name: Archive Output
run: |
mkdir -p artifacts
mv 4u-online artifacts/
cp README.md artifacts/
cp config.example.yml artifacts/config.yml
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: artifacts/