Skip to content

Commit

Permalink
chore: update cog.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Oct 26, 2023
1 parent 166f2d0 commit e9dc445
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,32 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

name: Release

jobs:
release:
name: SemVer release
name: Perform release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{secrets.GITHUB_TOKEN}}
- run: |
git config user.name github-actions
git config user.email [email protected]
git config --global user.email [email protected]
git config --global user.name github-actions

- name: Cocogitto release
id: release
uses: cocogitto/cocogitto-action@v3
with:
release: true
git-user: 'Cog Bot'
git-user-email: '[email protected]'
check-latest-tag-only: true

- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md

- name: Upload github release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.release.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 0 additions & 15 deletions CHANGELOG.md

This file was deleted.

6 changes: 4 additions & 2 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from_latest_tag = false
from_latest_tag = true
ignore_merge_commits = false
generate_mono_repository_global_tag = true
branch_whitelist = []
skip_untracked = false
pre_bump_hooks = []
Expand All @@ -12,6 +11,9 @@ tag_prefix = "v"
[git_hooks]

[commit_types]
chore = { changelog_title = "Chore", omit_from_changelog = true }
ci = { changelog_title = "CI", omit_from_changelog = true }
docs = { changelog_title = "Docs", omit_from_changelog = true }

[changelog]
path = "CHANGELOG.md"
Expand Down

0 comments on commit e9dc445

Please sign in to comment.