update release pypackage
This commit is contained in:
parent
18bef56f0c
commit
094ecb10cf
1 changed files with 17 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
name: build and release pypackage
|
||||
name: build and release pypackage on gitea
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
@ -8,10 +8,6 @@ on:
|
|||
type: string
|
||||
description: "package repository"
|
||||
default: main
|
||||
release-body:
|
||||
required: false
|
||||
type: string
|
||||
description: "body of the release"
|
||||
|
||||
secrets:
|
||||
username:
|
||||
|
@ -31,12 +27,27 @@ jobs:
|
|||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20'
|
||||
|
||||
- name: install auto-changelog
|
||||
run: npm install -g auto-changelog
|
||||
|
||||
- name: generate changelog
|
||||
run: >-
|
||||
auto-changelog -t keepachangelog
|
||||
--commit-limit 50 --backfill-limit 50
|
||||
--ignore-commit-pattern '[Bb]ump version|[Uu]pdate changelog|[Mm]erge pull request'
|
||||
|
||||
- name: get release notes
|
||||
id: release-notes
|
||||
uses: olofvndrhr/releasenote-gen@v1
|
||||
|
||||
- name: install hatch
|
||||
run: pip install -U hatch hatchling
|
||||
|
||||
|
@ -52,6 +63,6 @@ jobs:
|
|||
if: gitea.event_name != 'pull_request'
|
||||
with:
|
||||
title: ${{ gitea.ref_name }}
|
||||
body: ${{ inputs.release-body }}
|
||||
body: ${{ steps.release-notes.outputs.releasenotes }}
|
||||
files: |-
|
||||
dist/**
|
||||
|
|
Reference in a new issue