File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: build-and-release
66on :
77
88 # Trigger on a push
9- push :
9+ # push:
1010
1111 # Trigger on a published release
1212 release :
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
Original file line number Diff line number Diff line change 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
1518jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments