feat(ci): Update release config
This commit is contained in:
@@ -1,17 +1,10 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
before:
|
|
||||||
hooks:
|
|
||||||
- go mod tidy
|
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
- windows
|
|
||||||
- darwin
|
|
||||||
- freebsd
|
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w
|
- -s -w
|
||||||
- -X 'git.ostiwe.com/ostiwe-com/status/version.ApplicationVersion={{.Tag}}'
|
- -X 'git.ostiwe.com/ostiwe-com/status/version.ApplicationVersion={{.Tag}}'
|
||||||
@@ -31,41 +24,6 @@ archives:
|
|||||||
- goos: windows
|
- goos: windows
|
||||||
formats: [zip]
|
formats: [zip]
|
||||||
|
|
||||||
changelog:
|
|
||||||
use: gitea
|
|
||||||
format: "{{ .SHA }}: {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
|
|
||||||
abbrev: 0
|
|
||||||
sort: asc
|
|
||||||
groups:
|
|
||||||
- title: Features
|
|
||||||
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
|
||||||
order: 0
|
|
||||||
- title: Fixes
|
|
||||||
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
|
||||||
order: 1
|
|
||||||
- title: Refactoring
|
|
||||||
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$'
|
|
||||||
order: 2
|
|
||||||
- title: "Bug fixes"
|
|
||||||
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
|
|
||||||
order: 3
|
|
||||||
- title: Others
|
|
||||||
order: 999
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- "^docs:"
|
|
||||||
- "^test:"
|
|
||||||
|
|
||||||
release:
|
|
||||||
gitea:
|
|
||||||
name: status
|
|
||||||
owner: ostiwe-com
|
|
||||||
footer: >-
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.ostiwe.com/api/v1
|
api: https://git.ostiwe.com/api/v1
|
||||||
download: https://git.ostiwe.com
|
download: https://git.ostiwe.com
|
||||||
8
package.json
Normal file
8
package.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@semantic-release/changelog": "^6.0.3",
|
||||||
|
"@semantic-release/exec": "^7.1.0",
|
||||||
|
"@semantic-release/git": "^10.0.1",
|
||||||
|
"semantic-release": "25"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
release.config.cjs
Normal file
18
release.config.cjs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* @type {import('semantic-release').GlobalConfig}
|
||||||
|
*/
|
||||||
|
module.exports = {
|
||||||
|
branches: ['master', 'change_models'],
|
||||||
|
plugins: [
|
||||||
|
'@semantic-release/commit-analyzer',
|
||||||
|
'@semantic-release/release-notes-generator',
|
||||||
|
'@semantic-release/changelog',
|
||||||
|
'@semantic-release/git',
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"publishCmd": 'echo "${nextRelease.notes}" > /tmp/release-notes.md; goreleaser release --release-notes /tmp/release-notes.md --clean'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user