Skip to content

Commit

Permalink
chore: Update project configuration and workflows.
Browse files Browse the repository at this point in the history
- Removed unnecessary configuration from `pyproject.toml`
- Added configuration for release drafter in `.github/release-drafter.yml`
- Updated environment variables and dependencies in `.github/workflows/release.yaml`
  • Loading branch information
johnnyhuy committed Apr 20, 2024
1 parent 2ad3d13 commit f416b4d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 53 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ input/
LICENSE
output/
pyproject.toml
release.py
venv/
31 changes: 31 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
release:
runs-on: ubuntu-latest

env:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = false
version_files = ["pyproject.toml:^version"]
version_scheme = "semver"
post_bump_hooks = ["python release.py"]
51 changes: 0 additions & 51 deletions release.py

This file was deleted.

0 comments on commit f416b4d

Please sign in to comment.