forked from madgraph5/madgraph4gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[install] in archiver.yml improve control over the release notes disp…
…layed for a release
- Loading branch information
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|