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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
@ -8,10 +8,6 @@ on:
|
||||||
type: string
|
type: string
|
||||||
description: "package repository"
|
description: "package repository"
|
||||||
default: main
|
default: main
|
||||||
release-body:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: "body of the release"
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
username:
|
username:
|
||||||
|
@ -31,12 +27,27 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: setup go
|
- name: setup go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.20'
|
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
|
- name: install hatch
|
||||||
run: pip install -U hatch hatchling
|
run: pip install -U hatch hatchling
|
||||||
|
|
||||||
|
@ -52,6 +63,6 @@ jobs:
|
||||||
if: gitea.event_name != 'pull_request'
|
if: gitea.event_name != 'pull_request'
|
||||||
with:
|
with:
|
||||||
title: ${{ gitea.ref_name }}
|
title: ${{ gitea.ref_name }}
|
||||||
body: ${{ inputs.release-body }}
|
body: ${{ steps.release-notes.outputs.releasenotes }}
|
||||||
files: |-
|
files: |-
|
||||||
dist/**
|
dist/**
|
||||||
|
|
Reference in a new issue