Skip to content

Commit

Permalink
infra: automatically create release notes from tag
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <[email protected]>
  • Loading branch information
aarnphm committed Jul 13, 2024
1 parent 7ff8090 commit 611821e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # ratchet:actions/setup-python@v5
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
with:
python-version-file: .python-version-default
- name: Build
Expand Down Expand Up @@ -41,3 +41,21 @@ jobs:
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # ratchet:pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
release-notes:
if: github.repository_owner == 'bentoml'
needs:
- release
name: Create release notes from generated tags
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Create release
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # ratchet:softprops/action-gh-release@v2
with:
# Use GH feature to populate the changelog automatically
generate_release_notes: true
fail_on_unmatched_files: true
files: |-
dist/*
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ ci:
autoupdate_schedule: weekly
skip: [mypy]
autofix_commit_msg: "ci: auto fixes from pre-commit.ci\n\nFor more information, see https://pre-commit.ci"
autoupdate_commit_msg: 'ci: pre-commit autoupdate [pre-commit.ci]'
autofix_prs: false
autoupdate_commit_msg: "ci: pre-commit autoupdate [pre-commit.ci]"
autofix_prs: true
default_language_version:
python: python3.11 # NOTE: sync with .python-version-default
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.1'
rev: "v0.5.1"
hooks:
- id: ruff
alias: r
Expand All @@ -20,13 +20,13 @@ repos:
verbose: true
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.1'
rev: "v1.10.1"
hooks:
- id: mypy
args: [--strict]
additional_dependencies: [pydantic]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.3'
rev: "2.7.3"
hooks:
- id: editorconfig-checker
verbose: true
Expand All @@ -44,7 +44,7 @@ repos:
- id: end-of-file-fixer
verbose: true
- id: check-yaml
args: ['--unsafe']
args: ["--unsafe"]
- id: check-toml
- id: check-docstring-first
- id: check-added-large-files
Expand Down

0 comments on commit 611821e

Please sign in to comment.