Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
scrgiorgio committed May 21, 2024
1 parent 7077f16 commit 647c223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/build-openvisuspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,7 @@ jobs:
architecture: x64
- run: |
set -ex
GIT_TAG=`git describe --tags --exact-match 2>/dev/null || true`
if [[ "${GIT_TAG}" != "" ]] ; then
python3 -m pip install --upgrade pip
python3 -m pip install hatch
python3 -m build . --wheel
hatch publish --yes --no-prompt --user ${{ secrets.PYPI_USERNAME }} --client-key ${{ secrets.PYPI_TOKEN }}
# get last OpenVisus version
python3 -m pip install --upgrade OpenVisusNoGui
OPENVISUS_VERSION=$(python3 -c "from importlib.metadata import version;print(version('OpenVisusNoGui'))")
# build and publish docker
docker build --build-arg="OPENVISUS_VERSION=${OPENVISUS_VERSION}" --build-arg="GIT_TAG=${GIT_TAG}" --tag nsdf/openvisuspy:${GIT_TAG} ./
echo ${{ secrets.DOCKER_TOKEN }} | docker login -u=${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push nsdf/openvisuspy:${GIT_TAG}
docker push nsdf/openvisuspy:latest
fi
source scripts/ubuntu.sh
Expand Down
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,9 @@ Deploy binaries
# commit a new tagget version
GIT_TAG=$(python3 ./scripts/new_tag.py)

# GitHub
git commit -a -m "New tag ($GIT_TAG)"
git tag -a ${GIT_TAG} -m "${GIT_TAG}"
git push origin ${GIT_TAG}
git push origin

# upload (for Windows use the prompt)
# python3 -m pip install hatch
rm -f ./dist/*
python3 -m build . --wheel
hatch publish --yes --no-prompt --user ${PYPI_USERNAME} --client-key ${PYPI_PASSWORD}

# get latest OpenVisusNoGui
python3 -m pip install --upgrade OpenVisusNoGui
OPENVISUS_VERSION=$(python3 -c "from importlib.metadata import version;print(version('OpenVisusNoGui'))")

# Docker
sudo docker build --build-arg="OPENVISUS_VERSION=${OPENVISUS_VERSION}" --build-arg="GIT_TAG=${GIT_TAG}" --tag nsdf/openvisuspy:${GIT_TAG} ./
sudo docker run -it --rm -p 8888:8888 -v ./notebooks:/home/notebooks nsdf/openvisuspy:${GIT_TAG}
sudo docker push nsdf/openvisuspy:${GIT_TAG}
sudo docker push nsdf/openvisuspy:latest
```

0 comments on commit 647c223

Please sign in to comment.