We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b7e645 commit 2eada01Copy full SHA for 2eada01
.github/workflows/weekly-preview.yml
@@ -24,12 +24,16 @@ jobs:
24
sed -i 's/name\ =\ monai$/name\ =\ monai-weekly/g' setup.cfg
25
echo "__commit_id__ = \"$HEAD_COMMIT_ID\"" >> monai/__init__.py
26
git diff setup.cfg monai/__init__.py
27
- # build tar.gz and wheel
28
git config user.name "CI Builder"
29
git config user.email "[email protected]"
30
git add setup.cfg monai/__init__.py
31
git commit -m "Weekly build at $HEAD_COMMIT_ID"
32
- git tag 0.5.dev$(date +'%y%U')
+ export YEAR_WEEK=$(date +'%y%U')
+ echo "Year week for tag is ${YEAR_WEEK}"
33
+ if ! [[ $YEAR_WEEK =~ ^[0-9]{4}$ ]] ; then echo "Wrong 'year week' format. Should be 4 digits."; exit 1 ; fi
34
+ git tag "0.5.dev${YEAR_WEEK}"
35
+ git log -1
36
+ git tag --list
37
python setup.py sdist bdist_wheel
38
39
- name: Publish to PyPI
0 commit comments