Skip to content

Commit

Permalink
Corrected release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmunday committed Nov 17, 2022
1 parent d6c1cd3 commit 65d0e60
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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}}

0 comments on commit 65d0e60

Please sign in to comment.