1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-11-10 20:30:11 +00:00
jfa-go/.goreleaser.yml

60 lines
1.8 KiB
YAML
Raw Normal View History

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