-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
53 lines (48 loc) · 1.6 KB
/
Copy pathaction.yml
File metadata and controls
53 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Create GitHub Release
description: >-
Download distribution artefacts, extract release notes from a changelog,
and create a GitHub release with the artefacts attached.
inputs:
changelog:
description: Path to the changelog file
required: false
default: CHANGES.rst
heading-level:
description: >-
Heading level to extract. For RST: the adornment character
(e.g. '='). For Markdown: the heading depth as a number
(e.g. '2' for '##'). If omitted, the second distinct heading
level found in the file is used.
required: false
default: ''
artifact-name:
description: Name of the artifact to download
required: false
default: dist
artifact-pattern:
description: Pattern of the artifact to download
required: false
default: artifacts-*
runs:
using: composite
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Download and display distribution artefacts
uses: hyperspy/.github/.github/actions/download-artifact@main
with:
name: ${{ inputs.artifact-name }}
pattern: ${{ inputs.artifact-pattern }}
merge-multiple: true
- name: Extract release notes
id: release_notes
uses: hyperspy/.github/.github/actions/extract-release-notes@main
with:
changelog: ${{ inputs.changelog }}
heading-level: ${{ inputs.heading-level }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
with:
body: ${{ steps.release_notes.outputs.release-notes }}
files: dist/*