|
|
@ -218,16 +218,6 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
|
|
|
|
|
|
|
|
- name: Calculate tag name
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
name=dev
|
|
|
|
|
|
|
|
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
|
|
|
|
|
|
|
name=${GITHUB_REF:10}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo ::set-output name=val::$name
|
|
|
|
|
|
|
|
echo TAG=$name >> $GITHUB_ENV
|
|
|
|
|
|
|
|
id: tagname
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build archive
|
|
|
|
- name: Build archive
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -247,7 +237,7 @@ jobs:
|
|
|
|
if [[ $platform =~ "windows" ]]; then
|
|
|
|
if [[ $platform =~ "windows" ]]; then
|
|
|
|
exe=".exe"
|
|
|
|
exe=".exe"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
pkgname=helix-$TAG-$platform
|
|
|
|
pkgname=helix-$GITHUB_REF_NAME-$platform
|
|
|
|
mkdir $pkgname
|
|
|
|
mkdir $pkgname
|
|
|
|
cp $source/LICENSE $source/README.md $pkgname
|
|
|
|
cp $source/LICENSE $source/README.md $pkgname
|
|
|
|
mkdir $pkgname/contrib
|
|
|
|
mkdir $pkgname/contrib
|
|
|
@ -267,7 +257,7 @@ jobs:
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
tar cJf dist/helix-$TAG-source.tar.xz -C $source .
|
|
|
|
tar cJf dist/helix-$GITHUB_REF_NAME-source.tar.xz -C $source .
|
|
|
|
mv dist $source/
|
|
|
|
mv dist $source/
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload binaries to release
|
|
|
|
- name: Upload binaries to release
|
|
|
@ -277,7 +267,7 @@ jobs:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: dist/*
|
|
|
|
file: dist/*
|
|
|
|
file_glob: true
|
|
|
|
file_glob: true
|
|
|
|
tag: ${{ steps.tagname.outputs.val }}
|
|
|
|
tag: ${{ github.ref_name }}
|
|
|
|
overwrite: true
|
|
|
|
overwrite: true
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload binaries as artifact
|
|
|
|
- name: Upload binaries as artifact
|
|
|
|