Files
wish-serve/.gitea/workflows/release.yaml
Yves Biener b33ae50397
Some checks failed
Go Project Action / Spell-check and test go project (push) Successful in 32s
Go Project Action / Spell-check and test go project (release) Successful in 28s
Release Go Application / Release go project (release) Failing after 30s
mod(action): checkout depth and release action instead of upload action
2024-10-06 11:07:08 +02:00

32 lines
798 B
YAML

name: Release Go Application
on:
release:
types: [published]
workflow_run:
workflows: [Go Project Action]
types: [completed]
jobs:
release:
name: Release go project
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go installation
uses: actions/setup-go@v5
with:
go-version: 1.23.x
- name: Install dependencies
run: go get .
- name: Build
run: go build -ldflags "-s -w" -o ./bin/serve main.go
- name: Release build artifacts
uses: https://gitea.com/actions/release-action@main
with:
files: ./bin/serve
api_key: '${{secrets.RELEASE_TOKEN}}'