diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfe4b6c..c16ff61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,20 +17,20 @@ jobs: uses: actions/checkout@v3 - name: Create tar id: create_tar - run: >- - echo "::set-output name=TAR_PATH::$( + run: | + echo "TAR_PATH=$( build-tools/create-tar.sh - )" + )" >> $GITHUB_ENV - name: Get tar file name id: tar_name run: | - echo "::set-output name=TAR_NAME::$( - basename ${{steps.create_tar.outputs.TAR_PATH}} - )" + echo "TAR_NAME=$( + basename ${{env.TAR_PATH}} + )" >> $GITHUB_ENV - name: Move tar file - run: mv -v ${{steps.create_tar.outputs.TAR_PATH}} ./ + run: mv -v ${{env.TAR_PATH}} ./ - name: Create md5sum for tar file - run: md5sum ${{steps.tar_name.outputs.TAR_NAME}} | awk '{ print $1}' > ${{steps.tar_name.outputs.TAR_NAME}}.md5sum + run: md5sum ${{env.TAR_NAME}} | awk '{ print $1}' > ${{env.TAR_NAME}}.md5sum - name: Create OpenSUSE 15 RPM run: build-tools/OpenSUSE_15/build.sh - name: Create RHEL 7 RPM @@ -60,31 +60,31 @@ jobs: ls -1 build-tools/Ubuntu_22.04/slurm-mail*.deb )" >> $GITHUB_ENV - name: Create md5sum for OpenSUSE 15 RPM - run: md5sum ${{steps.pkg_paths.outputs.OPENSUSE15_RPM}} > ${{steps.pkg_paths.outputs.OPENSUSE15_RPM}}.md5sum + run: md5sum ${{env.OPENSUSE15_RPM}} > ${{env.OPENSUSE15_RPM}}.md5sum - name: Create md5sum for RHEL 7 RPM - run: md5sum ${{steps.pkg_paths.outputs.RHEL7_RPM}} > ${{steps.pkg_paths.outputs.RHEL7_RPM}}.md5sum + run: md5sum ${{env.RHEL7_RPM}} > ${{env.RHEL7_RPM}}.md5sum - name: Create md5sum for RHEL 8 RPM - run: md5sum ${{steps.pkg_paths.outputs.RHEL8_RPM}} > ${{steps.pkg_paths.outputs.RHEL8_RPM}}.md5sum + run: md5sum ${{env.RHEL8_RPM}} > ${{env.RHEL8_RPM}}.md5sum - name: Create md5sum for RHEL 9 RPM - run: md5sum ${{steps.pkg_paths.outputs.RHEL9_RPM}} > ${{steps.pkg_paths.outputs.RHEL9_RPM}}.md5sum + run: md5sum ${{env.RHEL9_RPM}} > ${{env.RHEL9_RPM}}.md5sum - name: Create md5sum for Ubuntu 22 package - run: md5sum ${{steps.pkg_paths.outputs.UBUNTU22_DEB}} > ${{steps.pkg_paths.outputs.UBUNTU22_DEB}}.md5sum + run: md5sum ${{env.UBUNTU22_DEB}} > ${{env.UBUNTU22_DEB}}.md5sum - name: GH Release uses: softprops/action-gh-release@v0.1.14 if: startsWith(github.ref, 'refs/tags/') with: files: | - ${{steps.tar_name.outputs.TAR_NAME}} - ${{steps.tar_name.outputs.TAR_NAME}}.md5sum - ${{steps.pkg_paths.outputs.OPENSUSE15_RPM}} - ${{steps.pkg_paths.outputs.OPENSUSE15_RPM}}.md5sum - ${{steps.pkg_paths.outputs.RHEL7_RPM}} - ${{steps.pkg_paths.outputs.RHEL7_RPM}}.md5sum - ${{steps.pkg_paths.outputs.RHEL8_RPM}} - ${{steps.pkg_paths.outputs.RHEL8_RPM}}.md5sum - ${{steps.pkg_paths.outputs.RHEL9_RPM}} - ${{steps.pkg_paths.outputs.RHEL9_RPM}}.md5sum - ${{steps.pkg_paths.outputs.UBUNTU22_DEB}} - ${{steps.pkg_paths.outputs.UBUNTU22_DEB}}.md5sum + ${{env.TAR_NAME}} + ${{env.TAR_NAME}}.md5sum + ${{env.OPENSUSE15_RPM}} + ${{env.OPENSUSE15_RPM}}.md5sum + ${{env.RHEL7_RPM}} + ${{env.RHEL7_RPM}}.md5sum + ${{env.RHEL8_RPM}} + ${{env.RHEL8_RPM}}.md5sum + ${{env.RHEL9_RPM}} + ${{env.RHEL9_RPM}}.md5sum + ${{env.UBUNTU22_DEB}} + ${{env.UBUNTU22_DEB}}.md5sum env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}