-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release workflow: Move changelog retrieval to the build job
- Loading branch information
Showing
1 changed file
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,13 +37,26 @@ jobs: | |
message: "Increment version to ${{ env.NEW_VERSION }}" | ||
|
||
build: | ||
name: Build the distribution packages | ||
name: Get changelog and build the distribution package | ||
runs-on: ubuntu-latest | ||
needs: increment-version | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Python tools | ||
uses: BrandonLWhite/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: poetry | ||
|
||
- name: Install dependencies | ||
run: poetry install --only=release | ||
|
||
- name: Install pandoc | ||
run: sudo apt update && sudo apt install pandoc -y | ||
|
||
- name: Obtain the changelog | ||
run: echo "changelog=$(poe changelog)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: poetry build | ||
|
@@ -58,24 +71,9 @@ jobs: | |
name: Create GitHub release | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
CHANGELOG: ${{ needs.build.outputs.changelog }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Python tools | ||
uses: BrandonLWhite/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: poetry | ||
|
||
- name: Install dependencies | ||
run: poetry install --only=release | ||
|
||
- name: Install pandoc | ||
run: sudo apt update && sudo apt install pandoc -y | ||
|
||
- name: Obtain the changelog | ||
run: echo CHANGELOG="$(poe changelog)" >> $GITHUB_ENV | ||
|
||
- name: Tag the commit | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
|