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}}"
|
2020-08-01 20:20:02 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
2021-01-05 12:55:25 +00:00
|
|
|
- rm -rf data/web
|
|
|
|
- mkdir -p data
|
|
|
|
- cp -r static data/web
|
|
|
|
- cp -r css data/web/
|
|
|
|
- cp node_modules/a17t/dist/a17t.css data/web/css/
|
|
|
|
- cp node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 data/web/css/
|
|
|
|
- cp -r html data/
|
|
|
|
- cp -r lang data/
|
2020-09-05 16:52:28 +00:00
|
|
|
- python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
|
2020-09-29 19:51:15 +00:00
|
|
|
- python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini
|
2020-10-17 23:57:53 +00:00
|
|
|
- npm install
|
2021-01-05 12:55:25 +00:00
|
|
|
- python3 mail/generate.py -o data/
|
2020-08-31 13:57:42 +00:00
|
|
|
- python3 version.py {{.Version}} version.go
|
2021-01-05 12:55:25 +00:00
|
|
|
- bash -c 'npx esbuild ts/*.ts ts/modules/*.ts --outdir=./data/web/js/ --minify'
|
2020-10-08 20:25:34 +00:00
|
|
|
- go get -u github.com/swaggo/swag/cmd/swag
|
2020-09-24 23:11:52 +00:00
|
|
|
- swag init -g main.go
|
2020-08-01 20:20:02 +00:00
|
|
|
builds:
|
2020-08-01 23:36:27 +00:00
|
|
|
- dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
2020-08-16 13:55:39 +00:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
2020-08-01 20:20:02 +00:00
|
|
|
archives:
|
2020-08-01 23:36:27 +00:00
|
|
|
- replacements:
|
|
|
|
darwin: Darwin
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
amd64: x86_64
|
|
|
|
files:
|
|
|
|
- data/*
|
2021-01-05 12:55:25 +00:00
|
|
|
- data/**/*
|
|
|
|
- data/**/**/*
|
2020-08-01 20:20:02 +00:00
|
|
|
checksum:
|
2020-08-01 23:36:27 +00:00
|
|
|
name_template: 'checksums.txt'
|
2020-08-01 20:20:02 +00:00
|
|
|
snapshot:
|
2020-10-22 16:57:05 +00:00
|
|
|
name_template: "git-{{.ShortCommit}}"
|
2020-08-01 20:20:02 +00:00
|
|
|
changelog:
|
2020-08-01 23:36:27 +00:00
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|