Skip to content

Commit

Permalink
New tag (1.0.46)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrgiorgio committed May 21, 2024
1 parent 9139356 commit 246298b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-openvisuspy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: build-openvisus
on: [push]

env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}


jobs:

build-ubuntu:
Expand Down
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ export VISUS_CACHE=c:/tmp/visus-cache
Deploy binaries

```bash



# commit a new tagget version
GIT_TAG=$(python3 ./scripts/new_tag.py)

git commit -a -m "New tag ($GIT_TAG)"
git tag -a ${GIT_TAG} -m "${GIT_TAG}"
git push origin ${GIT_TAG}
git push origin
./scripts/new_tag.sh
```

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openvisuspy"
version = "1.0.45"
version = "1.0.46"
authors = [{ name="OpenVisus developers"},]
description = "openvisuspy"
readme = "README.md"
Expand Down
8 changes: 8 additions & 0 deletions scripts/new_tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

GIT_TAG=$(python3 ./scripts/new_tag.py)

git commit -a -m "New tag ($GIT_TAG)"
git tag -a ${GIT_TAG} -m "${GIT_TAG}"
git push origin ${GIT_TAG}
git push origin
4 changes: 2 additions & 2 deletions scripts/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ GIT_TAG=`git describe --tags --exact-match 2>/dev/null || true`
if [[ "${GIT_TAG}" != "" ]] ; then

# publish to PyPi
hatch publish --yes --no-prompt --user ${{ secrets.PYPI_USERNAME }} --client-key ${{ secrets.PYPI_TOKEN }}
hatch publish --yes --no-prompt --user ${PYPI_USERNAME} --client-key ${PYPI_TOKEN}

# publish to DockerHub
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
echo ${DOCKER_TOKEN} | docker login -u=${DOCKER_USERNAME} --password-stdin
docker push nsdf/openvisuspy:${GIT_TAG}
docker push nsdf/openvisuspy:latest

Expand Down

0 comments on commit 246298b

Please sign in to comment.