This commit is contained in:
24
.gitea/workflows/release.yaml
Normal file
24
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
name: release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ^1.24
|
||||||
|
- name: Build binary
|
||||||
|
run: go build -v ./...
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -json ./... | tee test-results.json
|
||||||
|
- name: Upload artefacts
|
||||||
|
uses: actions/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: test-results
|
||||||
|
path: test-results.json
|
||||||
Reference in New Issue
Block a user