Updating Grunt commands
This commit is contained in:
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
@ -0,0 +1,30 @@
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.22
|
||||
commands:
|
||||
- go mod vendor
|
||||
- GOOS=linux GOARCH=amd64 go build -o "dist/blt-linux-amd64-${CI_COMMIT_TAG}.bin"
|
||||
- GOOS=windows GOARCH=amd64 go build -o "dist/blt-windows-amd64-${CI_COMMIT_TAG}.exe"
|
||||
|
||||
assets:
|
||||
image: node:24
|
||||
commands:
|
||||
- npm install
|
||||
- npm run grunt build
|
||||
|
||||
package:
|
||||
image: alpine
|
||||
commands:
|
||||
- tar -cvzf "dist/blt-assets-${CI_COMMIT_TAG}.tar.gz" public/
|
||||
|
||||
gitea_release:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: gitea_api_key
|
||||
base_url: https://git.metaunix.net
|
||||
title: "${CI_COMMIT_TAG}"
|
||||
files:
|
||||
- dist/blt-*
|
||||
when:
|
||||
event: tag
|
Reference in New Issue
Block a user