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

58 lines
1.4 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
- cp -r css data/web/
- npm install
- 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
- python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini
- python3 mail/generate.py -o data/
- python3 version.py {{.Version}} version.go
- 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
- swag init -g main.go
builds:
2020-08-01 23:36:27 +00:00
- dir: ./
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
archives:
2020-08-01 23:36:27 +00:00
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
files:
- data/*
- data/**/*
- data/**/**/*
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:'