2020-08-02 01:36:27 +02:00
|
|
|
project_name: jfa-go
|
|
|
|
release:
|
|
|
|
github:
|
|
|
|
owner: hrfee
|
|
|
|
name: jfa-go
|
2020-08-02 03:11:50 +02:00
|
|
|
name_template: "v{{.Version}}"
|
2020-08-01 22:20:02 +02:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
2021-01-05 19:16:23 +01:00
|
|
|
- rm -rf data/web
|
|
|
|
- mkdir -p data
|
|
|
|
- cp -r static data/web
|
|
|
|
- npm install
|
2021-02-11 19:21:21 +01:00
|
|
|
- npm install esbuild
|
2021-01-23 19:53:14 +01:00
|
|
|
- mkdir -p data/web/css
|
2021-01-23 20:08:27 +01:00
|
|
|
- npx esbuild --bundle css/base.css --outfile=./data/web/css/bundle.css --external:remixicon.css --minify
|
2021-01-05 19:16:23 +01:00
|
|
|
- cp node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 data/web/css/
|
|
|
|
- cp -r html data/
|
|
|
|
- cp -r lang data/
|
2021-03-07 17:45:35 +01:00
|
|
|
- cp LICENSE data/
|
2021-02-17 15:32:03 +01:00
|
|
|
- python3 scripts/enumerate_config.py -i config/config-base.json -o data/config-base.json
|
|
|
|
- python3 scripts/generate_ini.py -i config/config-base.json -o data/config-default.ini
|
|
|
|
- python3 scripts/compile_mjml.py -o data/
|
2021-01-23 20:08:27 +01:00
|
|
|
- npx esbuild --bundle ts/admin.ts --outfile=./data/web/js/admin.js --minify
|
|
|
|
- npx esbuild --bundle ts/form.ts --outfile=./data/web/js/form.js --minify
|
2021-01-26 01:37:32 +01:00
|
|
|
- npx esbuild --bundle ts/setup.ts --outfile=./data/web/js/setup.js --minify
|
2020-10-08 22:25:34 +02:00
|
|
|
- go get -u github.com/swaggo/swag/cmd/swag
|
2020-09-25 01:11:52 +02:00
|
|
|
- swag init -g main.go
|
2021-02-17 15:32:03 +01:00
|
|
|
- python3 scripts/embed.py internal
|
2020-08-01 22:20:02 +02:00
|
|
|
builds:
|
2020-08-02 01:36:27 +02:00
|
|
|
- dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2021-03-07 16:23:44 +01:00
|
|
|
ldflags:
|
2021-03-07 16:54:32 +01:00
|
|
|
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary
|
2020-08-02 01:36:27 +02:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
2020-08-16 15:55:39 +02:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
2020-08-01 22:20:02 +02:00
|
|
|
archives:
|
2020-08-02 01:36:27 +02:00
|
|
|
- replacements:
|
2021-02-17 17:53:15 +01:00
|
|
|
darwin: macOS
|
2020-08-02 01:36:27 +02:00
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
amd64: x86_64
|
2020-08-01 22:20:02 +02:00
|
|
|
checksum:
|
2020-08-02 01:36:27 +02:00
|
|
|
name_template: 'checksums.txt'
|
2020-08-01 22:20:02 +02:00
|
|
|
snapshot:
|
2020-10-22 18:57:05 +02:00
|
|
|
name_template: "git-{{.ShortCommit}}"
|
2020-08-01 22:20:02 +02:00
|
|
|
changelog:
|
2020-08-02 01:36:27 +02:00
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|