Skip to content

Commit

Permalink
[install] in archiver.yml improve control over the release notes disp…
Browse files Browse the repository at this point in the history
…layed for a release
  • Loading branch information
valassi committed Sep 30, 2024
1 parent c8e023c commit 6c1b2e5
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ jobs:
echo "" >> ${WORKDIR}/VERSION.txt
echo "VERSION TAG: ${tagname}" >> ${WORKDIR}/VERSION.txt
echo "RUNNING TAG: ${tagname_latest}" >> ${WORKDIR}/VERSION.txt
# Release notes for the version tag
echo "Version tag ${tagname}" > ${WORKDIR}/versiontag.txt
echo "" >> ${WORKDIR}/versiontag.txt
python3 -c 'print("="*80)' >> ${WORKDIR}/versiontag.txt
cat ${WORKDIR}/VERSION.txt >> ${WORKDIR}/versiontag.txt
python3 -c 'print("="*80)' >> ${WORKDIR}/versiontag.txt
git push -f --tags
echo "TEST TEST TEST" >> ${WORKDIR}/versiontag.txt
# Release notes for the version tag
echo "Version tag ${tagname}" > ${WORKDIR}/versiontag.txt
echo "TEST TEST TEST" >> ${WORKDIR}/versiontag.txt
- name: create_runningtag
run: |
Expand All @@ -100,21 +111,23 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
echo "INFO: create running tag ${tagname_latest}"
echo "Running tag ${tagname_latest}" > msg.txt
echo "This is equivalent to version tag ${tagname}" >> msg.txt
echo "" >> msg.txt
python3 -c 'print("="*80)' >> msg.txt
cat ${WORKDIR}/VERSION.txt >> msg.txt
python3 -c 'print("="*80)' >> msg.txt
git tag -f ${tagname_latest} ${commit} -F msg.txt
git tag -f ${tagname_latest} ${commit} -m "Running tag ${tagname_latest}"
git push -f --tags
# Release notes for the running tag
echo "Running tag ${tagname_latest}" > ${WORKDIR}/runningtag.txt
echo "This is equivalent to version tag ${tagname}" >> ${WORKDIR}/runningtag.txt
echo "" >> ${WORKDIR}/runningtag.txt
python3 -c 'print("="*80)' >> ${WORKDIR}/runningtag.txt
cat ${WORKDIR}/VERSION.txt >> ${WORKDIR}/runningtag.txt
python3 -c 'print("="*80)' >> ${WORKDIR}/runningtag.txt
- name: release_versiontag
# See https://github.com/softprops/action-gh-release
uses: softprops/action-gh-release@v2
###if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ env.TAGNAME }}
body_path: versiontag.txt
# Previous attempt to upload files from ${HOME}/VERSION.txt and ${HOME}/cudacpp.tar.gz failed
# The current implementation uploads files from the default $WORKDIR (without giving the explicit full path)
files: |
Expand All @@ -129,6 +142,7 @@ jobs:
with:
name: ${{ env.TAGNAME_LATEST }}
tag_name: refs/tags/${{ env.TAGNAME_LATEST }}
body_path: runningtag.txt
# Previous attempt to upload files from ${HOME}/VERSION.txt and ${HOME}/cudacpp.tar.gz failed
# The current implementation uploads files from the default $WORKDIR (without giving the explicit full path)
files: |
Expand Down

0 comments on commit 6c1b2e5

Please sign in to comment.