31 lines
720 B
YAML
31 lines
720 B
YAML
steps:
|
|
"Build assets":
|
|
when:
|
|
event: [push, pull_request, tag, manual]
|
|
branch: [main, develop, feature/*]
|
|
image: "node:20-alpine"
|
|
environments:
|
|
NODE_ENV: prod
|
|
commands:
|
|
- npm i
|
|
- ./node_modules/.bin/webpack
|
|
|
|
"Build go":
|
|
when:
|
|
event: [push, pull_request, tag, manual]
|
|
branch: [main, develop, feature/*]
|
|
image: "golang:1.25-bookworm"
|
|
commands:
|
|
- go install github.com/GeertJohan/go.rice/rice@latest
|
|
- go mod tidy
|
|
- make binary
|
|
|
|
"Publish":
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitnet_api_key
|
|
base_url: https://gitnet.fr
|
|
files: owncast-webhook
|
|
when:
|
|
event: [tag]
|