From 73e0611d165a03f0ce6ca65d56b93e63ed8fd486 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Mon, 21 Nov 2022 21:59:27 +0000 Subject: [PATCH] Use set-output --- .github/workflows/release-and-package.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-and-package.yml b/.github/workflows/release-and-package.yml index 9b57c0d..149633d 100644 --- a/.github/workflows/release-and-package.yml +++ b/.github/workflows/release-and-package.yml @@ -52,6 +52,8 @@ jobs: tar --append -f /root/getssl-${{ github.event.inputs.tags }}.sdeb -C ./getssl getssl.spec --transform 's,^,SPECS/,' debbuild --install /root/getssl-${{ github.event.inputs.tags }}.sdeb debbuild -vv -ba /root/debbuild/SPECS/getssl.spec + echo "::set-output name=deb::/root/getssl-${{ github.event.inputs.tags }}.sdeb" + - name: build .rpm package id: build_rpm @@ -69,6 +71,9 @@ jobs: rpmbuild -ba /root/getssl/getssl.spec cp /root/rpmbuild/SRPMS/getssl-*.rpm /root/getssl cp /root/rpmbuild/RPMS/noarch/getssl-*.rpm /root/getssl + echo "::set-output name=getssl_rpm::/root/rpmbuild/RPMS/noarch/getssl-*.rpm" + echo "::set-output name=getssl_srpm::/root/rpmbuild/SRPMS/getssl-*.rpm" + - name: create_release id: create_release @@ -83,6 +88,6 @@ jobs: draft: true prerelease: false artifacts: | - /root/debbuild/DEBS/all/getssl_${{ github.event.inputs.tags }}-*_all.deb - /root/getssl-${{ github.event.inputs.tags }}-*.src.rpm - /root/getssl-${{ github.event.inputs.tags }}-*.noarch.rpm + ${{ steps.build_deb.outputs.getssl_deb }} + ${{ steps.build_rpm.outputs.getssl_rpm }} + ${{ steps.build_rpm.outputs.getssl_srpm }}