File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 8
8
required : true
9
9
10
10
jobs :
11
+ increment_version :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Install pandoc
16
+ run : sudo apt update && sudo apt install pandoc -y
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : " 3.9"
21
+ - name : Run version script
22
+ id : script
23
+ run : |
24
+ python extra/release.py "${{ inputs.version }}" >> changelog.txt
25
+ - name : Store the changelog
26
+ uses : actions/upload-artifact@v3
27
+ with :
28
+ name : changelog
29
+ path : changelog.txt
30
+ - run : rm changelog.txt
31
+ - uses : EndBug/add-and-commit@v9
32
+ name : Commit the changes
33
+ with :
34
+ message : ' Increment version numbers to ${{ inputs.version }}'
35
+
11
36
build :
12
37
runs-on : ubuntu-latest
38
+ needs : increment_version
13
39
steps :
14
40
- uses : actions/checkout@v4
15
41
- name : Set up Python
@@ -43,13 +69,18 @@ jobs:
43
69
with :
44
70
name : python-package-distributions
45
71
path : dist/
72
+ - name : Download the changelog
73
+ uses : actions/download-artifact@v3
74
+ with :
75
+ name : changelog
76
+ path : changelog.txt
46
77
- name : Create a GitHub release
47
78
uses : ncipollo/release-action@v1
48
79
with :
49
80
tag : ${{ steps.tag_version.outputs.new_tag }}
50
81
name : Release ${{ steps.tag_version.outputs.new_tag }}
51
- body : ${{ steps.tag_version.outputs. changelog }}
52
- artifacts : dist/
82
+ bodyFile : ./ changelog.txt
83
+ artifacts : dist/*
53
84
54
85
publish_to_pypi :
55
86
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments