Skip to content

Commit

Permalink
chore: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-Kim2028 committed Jul 21, 2024
1 parent 60d5685 commit 69b8378
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate Changelog

on:
push:
tags:
- 'v*.*.*'

jobs:
changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Rye
run: |
python -m pip install --upgrade pip
pip install rye
- name: Install project dependencies
run: rye sync

- name: Generate changelog
run: rye run changelog > CHANGELOG.md

- name: Commit changelog
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add CHANGELOG.md
git commit -m 'chore: update changelog'
git push
Empty file added CHANGELOG.md
Empty file.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/mev_commit_sdk_py"]

[tool.rye.scripts]
changelog = "git_changelog.cli:main"

0 comments on commit 69b8378

Please sign in to comment.