Skip to content

Commit 77b5179

Browse files
committed
Update release
1 parent 308f9f5 commit 77b5179

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/make_release.yaml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,34 @@ on:
88
required: true
99

1010
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+
1136
build:
1237
runs-on: ubuntu-latest
38+
needs: increment_version
1339
steps:
1440
- uses: actions/checkout@v4
1541
- name: Set up Python
@@ -43,13 +69,18 @@ jobs:
4369
with:
4470
name: python-package-distributions
4571
path: dist/
72+
- name: Download the changelog
73+
uses: actions/download-artifact@v3
74+
with:
75+
name: changelog
76+
path: changelog.txt
4677
- name: Create a GitHub release
4778
uses: ncipollo/release-action@v1
4879
with:
4980
tag: ${{ steps.tag_version.outputs.new_tag }}
5081
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/*
5384

5485
publish_to_pypi:
5586
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)