wfc-server/.github/workflows/build.yml
Campbell 8260fcf584
(ci) Add lint workflow (#95)
* (ci) Add lint workflow, update build workflow actions

* (ci) Fixed golangci-lint version

oops I accidentally confused the golintci-lint and go versions

* (ci) Testing exclusions

* Update .golangci.yml

* Update .golangci.yml
2026-04-05 21:53:04 -04:00

39 lines
949 B
YAML

name: Build CI
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- name: Install dependencies
run: go mod download
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
args: build --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete unused files
run: |
cd dist
rm -rf *.json *.json *.yaml *.tar.gz
- name: Get short SHA
id: short-sha
run: echo "SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: wfc-server-${{ steps.short-sha.outputs.SHA }}
path: ./dist/*/*