diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 544b520..f9ba930 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,18 +48,23 @@ jobs: cp reva-release/revad.spec reva/revad.spec - name: Create reva RPMs run: | + set -x rm -rf ~/.cache/go-build cd reva make -f Makefile.rpm rpm mkdir /release - names=(${${{ matrix.container }}//\// }) + names=(${CONTAINER//\// }) + echo ${names[@]} dist=${names[1]} + echo $dist path="/release/cernbox-revad-${{ env.version }}-${dist}.rpm" - mv cernbox-revad*.rpm $path + echo $path + mv cernbox-revad*.rpm "$path" echo "artifactPath=$path" >> $GITHUB_ENV echo "artifactName=`basename $path`" >> $GITHUB_ENV env: CGO_ENABLED: 1 + CONTAINER: ${{ matrix.container }} - name: Upload artifact uses: actions/upload-artifact@v3 with: