Skip to content

Commit

Permalink
Fixing automated GH release
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspd committed Feb 4, 2024
1 parent 2ce112c commit 497eee7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 17 deletions.
66 changes: 51 additions & 15 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,69 @@
name-template: 'Release v${{NEXT_VERSION}}'
tag-template: 'v${{NEXT_VERSION}}'
name-template: 'Release v${{ env.RELEASE_VERSION }}'
tag-template: 'v${{ env.RELEASE_VERSION }}'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
collapse-after: 3
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
collapse-after: 3
- title: '🧰 Maintenance'
labels:
- 'chore'
- 'maintenance'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
major:
collapse-after: 3
- title: '🔨 Refactor'
labels:
- 'major'
minor:
- 'refactor'
- 'refactoring'
collapse-after: 3
- title: '🧪 Testing'
labels:
- 'minor'
patch:
- 'tests'
- 'testing'
- 'test'
- 'unittest'
- 'pytest'
collapse-after: 3
- title: '📚 Documentation'
labels:
- 'patch'
default: patch
template: |
## Changes
- 'docs'
- 'documentation'
collapse-after: 3
- title: '🔒 Security'
labels:
- 'security'
- 'vulnerability'
- 'vulnerabilities'
- 'security-fix'
- 'security-fixes'
- 'security-update'
- 'security-updates'
- 'security-patch'
- 'security-patches'
- 'security-release'
- 'security-releases'
- 'security-issue'
- 'security-issues'
- 'security-bug'
- 'security-bugs'
- 'security-vulnerability'
- 'security-vulnerabilities'
- 'security-notice'
- 'security-notices'`
collapse-after: 3
- title: 'Enhancement'
collapse-after: 3
change-template: '- $TITLE by @$AUTHOR in (#$NUMBER)'
change-title-escapes: '\<*_&'
template: |
## What’s Changed
$CHANGES
## New Contributors
$CONTRIBUTORS
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}

create-release:
needs: build-and-publish
if: needs.build-and-publish.outputs.publish_to_pypi == 'true'
needs: [prepare-and-check, build-and-publish]
if: needs.prepare-and-check.outputs.publish_to_pypi == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -95,6 +95,9 @@ jobs:
with:
inputs: ./dist/*.tar.gz ./dist/*.whl

- name: Set Release Version Env
run: echo "RELEASE_VERSION=${{ needs.prepare-and-check.outputs.version }}" >> $GITHUB_ENV

- name: Draft Release
id: draft_release
uses: release-drafter/release-drafter@v6
Expand Down

0 comments on commit 497eee7

Please sign in to comment.