ldms-notify enhancements needed for production convenience. #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
push: | |
tags: | |
- 'OVIS-4*' | |
jobs: | |
build: | |
name: Create Release | |
# Make sure that test-make-dist.yaml has the same "runs-on" and | |
# "container" as used here. | |
runs-on: ubuntu-20.04 | |
container: | |
image: ovishpc/ovis-ubuntu-build | |
steps: | |
- uses: actions/checkout@v3 | |
# actions/checkout breaks annotated tags by converting them into | |
# lightweight tags, so we need to force fetch the tag again | |
# See: https://github.com/actions/checkout/issues/290 | |
- name: Repair tag | |
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} | |
- name: Verify tag is annotated | |
run: if test x$(git for-each-ref ${{ github.ref }} | awk '{print $2}') = xtag; then /bin/true; else echo "\"${{ github.ref }}\" does not look like an annotated tag!"; /bin/false; fi | |
- name: autogen.sh | |
run: sh autogen.sh | |
- name: configure | |
run: ./configure | |
- name: make dist | |
run: | | |
make dist | |
echo TARBALL_NAME=$(ls *.tar.gz | head -1) >> $GITHUB_ENV | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./${{ env.TARBALL_NAME }} |