Skip to content

Commit

Permalink
ci: add GitHub release workflow (#38)
Browse files Browse the repository at this point in the history
* chore: update cliff.toml

Signed-off-by: Kenji Miyake <[email protected]>

* ci: add GitHub release workflow

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored Feb 7, 2022
1 parent 845e700 commit 349f213
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: github-release

on:
push:
tags:
- v*

jobs:
github-release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Run generate-changelog
id: generate-changelog
uses: autowarefoundation/autoware-github-actions/generate-changelog@tier4/proposal

- name: Release to GitHub
run: |
echo "Release ${{ github.ref_name }}"
gh release create "${{ github.ref_name }}" \
--draft \
--notes "${{ steps.generate-changelog.outputs.changelog }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 8 additions & 2 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body = """
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
Expand Down Expand Up @@ -58,4 +58,10 @@ filter_commits = false
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = "v.*-beta.*"
skip_tags = "v0.0.0"
# regex for ignoring tags
ignore_tags = "v.*-beta.*"
# sort the tags chronologically
date_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"

0 comments on commit 349f213

Please sign in to comment.