Skip to content

Commit f30490b

Browse files
committed
ci: change semver calculator actions
Signed-off-by: msterhuj <gabin.lanore@gmail.com>
1 parent b352721 commit f30490b

File tree

3 files changed

+95
-65
lines changed

3 files changed

+95
-65
lines changed

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '🧰 Maintenance'
14+
labels:
15+
- 'chore'
16+
- 'dependencies'
17+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
19+
version-resolver:
20+
major:
21+
labels:
22+
- 'major'
23+
minor:
24+
labels:
25+
- 'feature'
26+
patch:
27+
labels:
28+
- 'patch'
29+
default: patch
30+
autolabeler:
31+
- label: 'feature'
32+
title:
33+
- '/feature/i'
34+
- label: 'fix'
35+
title:
36+
- '/fix/i'
37+
template: |
38+
## Changes
39+
40+
$CHANGES
41+
42+
## Contributors
43+
44+
$CONTRIBUTORS
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release Drafter
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
update_release_draft:
19+
name: Update Release Draft
20+
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: release-drafter/release-drafter@v6
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
# build:
32+
# name: "Build pip package"
33+
# runs-on: ubuntu-latest
34+
# needs:
35+
# - generate-version
36+
#
37+
# steps:
38+
# - name: "Checkout Action"
39+
# uses: actions/checkout@v3
40+
# with:
41+
# fetch-depth: 0
42+
#
43+
# - name: "Set version to pyproject.toml and __init__.py"
44+
# run: |
45+
# python scripts/set_version.py ${{ needs.generate-version.outputs.next }}
46+
#
47+
# - name: Build and publish to pypi
48+
# uses: JRubics/poetry-publish@v2.0
49+
# with:
50+
# pypi_token: ${{ secrets.PYPI_TOKEN }}
51+
# python_version: "3.12"

.github/workflows/release.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)