diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..89281a6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +name: ci + +on: + tag: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v5 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + # 'latest', 'nightly', or a semver + version: '~> v0.0.2' + args: release --clean \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4126908..4ff9f6e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,18 +1,8 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com - -# The lines below are called `modelines`. See `:help modeline` -# Feel free to remove those if you don't want/need to use them. -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj - version: 2 before: hooks: - # You may remove this if you don't use go modules. - go mod tidy - # you may remove this if you don't need go generate - go generate ./... builds: @@ -42,56 +32,22 @@ archives: formats: [zip] changelog: - sort: asc + abbrev: 10 filters: exclude: - "^docs:" - "^test:" - -release: - footer: >- - - --- - - Released by [GoReleaser](https://github.com/goreleaser/goreleaser). - - gitea: - owner: DevFW-CICD - name: edge-connect-client - - # IDs of the artifacts to use. - #ids: - # - foo - # - bar - - # You can change the name of the release. - # - # Default: '{{.Tag}}' ('{{.PrefixedTag}}' on Pro). - # Templates: allowed. - name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}" - - # You can disable this pipe in order to not upload any artifacts. - disable: false - - # What to do with the release notes in case there the release already exists. - # - # Valid options are: - # - `keep-existing`: keep the existing notes - # - `append`: append the current release notes to the existing notes - # - `prepend`: prepend the current release notes to the existing notes - # - `replace`: replace existing notes - # - # Default: 'keep-existing'. - mode: append - - # You can add extra pre-existing files to the release. - # The filename on the release will be the last part of the path (base). - # If another file with the same name exists, the last one found will be used. - # - # Templates: allowed. - #extra_files: - #- glob: ./path/to/file.txt - #- glob: ./glob/**/to/**/file/**/* - #- glob: ./glob/foo/to/bar/file/foobar/override_from_previous - #- glob: ./single_file.txt - # name_template: file.txt # note that this only works if glob matches 1 file only \ No newline at end of file + format: "{{.SHA}}: {{.Message}}" + groups: + - title: Features + regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' + order: 0 + - title: "Bug fixes" + regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' + order: 1 + - title: "Chores" + regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$' + order: 2 + - title: Others + order: 999 + sort: asc