File tree 3 files changed +21
-33
lines changed
3 files changed +21
-33
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,14 @@ jobs:
23
23
run : |
24
24
python -m pip install --upgrade pip
25
25
pip install setuptools wheel twine
26
+ - name : Check version
27
+ run : |
28
+ sh tools/check_version.sh ${GITHUB_REF#refs/*/}
26
29
- name : Build and publish
27
30
env :
28
31
TWINE_REPOSITORY_URL : ${{ secrets.PYPI_REPOSITORY_URL }}
29
32
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
30
33
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
31
34
run : |
32
- python setup.py sdist bdist_wheel
35
+ python setup.py sdist
33
36
twine upload dist/*
Original file line number Diff line number Diff line change
1
+ TAG=$1
2
+ TAG=` echo $TAG | sed -e " s/v//g" `
3
+
4
+ PACKAGE_NAME=" rl_algorithms"
5
+
6
+ echo " A tag triggered build. $TAG "
7
+
8
+ VERSION=` cat " $PACKAGE_NAME " /version`
9
+ echo " The version is $VERSION "
10
+
11
+ if [ " $VERSION " = " $TAG " ]; then
12
+ echo " Version is correct! Deploy to local server."
13
+
14
+ else
15
+ echo " Tag and version are not same. Check again."
16
+ exit 1
17
+ fi ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments