Skip to content

Commit 0bc527a

Browse files
committed
Add python package name
1 parent 39c692b commit 0bc527a

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: build-and-release
66
on:
77

88
# Trigger on a push
9-
push:
9+
#push:
1010

1111
# Trigger on a published release
1212
release:
@@ -61,5 +61,5 @@ jobs:
6161
${{ needs.call-macos-build.outputs.build-file }}
6262
${{ needs.call-linux-build.outputs.build-file }}
6363
${{ needs.call-windows-build.outputs.build-file }}
64-
${{ needs.call-python-build.outputs.build-file }}
64+
${{ needs.call-python-build.outputs.build-package }}
6565

.github/workflows/build-python.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ on:
99
outputs:
1010
build-file:
1111
description: "The output of this build procsss"
12-
value: ${{ jobs.linux-build-job.outputs.install-file }}
12+
value: ${{ jobs.python-build-job.outputs.install-file }}
13+
build-package:
14+
description: "The output of this build procsss"
15+
value: ${{ jobs.python-build-job.outputs.install-package }}
1316

1417
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1518
jobs:
1619
# Build the installer on mac
17-
linux-build-job:
20+
python-build-job:
1821
# The type of runner that the job will run on
1922
runs-on: ubuntu-latest
2023

2124
# Output
2225
outputs:
2326
install-file: ${{ steps.output-installer.outputs.filename }}
27+
install-package: ${{ steps.output-installer.outputs.packagename }}
2428

2529
# Steps represent a sequence of tasks that will be executed as part of the job
2630
steps:
@@ -45,7 +49,12 @@ jobs:
4549
name: python-install-package
4650
path: dist
4751

52+
- name: Extract package name
53+
run: |
54+
cd dist
55+
echo "PACKAGE_NAME=$(ls *.tar.gz)" >> $GITHUB_ENV
56+
4857
- id: output-installer
49-
run: echo "::set-output name=filename::python-install-package"
50-
51-
58+
run: |
59+
echo "filename=python-install-package" >> $GITHUB_OUTPUT
60+
echo "packagename=${{ env.PACKAGE_NAME }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)