File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 57
57
mkdir -p $GITHUB_WORKSPACE/docs/src/specsscan
58
58
cp -r $GITHUB_WORKSPACE/src/specsscan/config $GITHUB_WORKSPACE/docs/src/specsscan
59
59
60
- - name : Change version for develop build
61
- if : startsWith(github.ref, 'refs/heads/') && github.ref != 'refs/heads/main'
62
- run : |
63
- VERSION=`sed -n 's/^version = "\(.*\)".*/\1/p' $GITHUB_WORKSPACE/pyproject.toml`
64
- MOD_VERSION=$VERSION".dev0"
65
- echo $MOD_VERSION
66
- sed -i "s/^version = \"$VERSION\"/version = \"$MOD_VERSION\"/" $GITHUB_WORKSPACE/pyproject.toml
67
-
68
- - name : Change version for release build
69
- if : startsWith(github.ref, 'refs/tags/')
70
- run : |
71
- OLD_VERSION=`sed -n 's/^version = "\(.*\)".*/\1/p' $GITHUB_WORKSPACE/pyproject.toml`
72
- NEW_VERSION=`echo ${GITHUB_REF#refs/tags/} | sed -n 's/^v\(.*\)/\1/p'`
73
- echo $NEW_VERSION
74
- sed -i "s/^version = \"$OLD_VERSION\"/version = \"$NEW_VERSION\"/" $GITHUB_WORKSPACE/pyproject.toml
75
-
76
60
- name : build Sphinx docs
77
61
run : sphinx-build -b html $GITHUB_WORKSPACE/docs $GITHUB_WORKSPACE/_build
78
62
You can’t perform that action at this time.
0 commit comments