Tagging up v1.4.2.6 #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will upload a Python Package using Twine when a new tag is created | |
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will also build and upload two docker images to dockerhub | |
name: Build and Release to Pypi and DockerHub | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
push_jaseci_core_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JASECI_PYPI_API_TOKEN }} | |
run: | | |
cd jaseci_core | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
push_jaseci_serv_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
- name: Generate Studio Files | |
run: | | |
pip install beautifulsoup4==4.12.0 | |
sh ./export_studio.sh | |
working-directory: "./jaseci_studio" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JASECI_SERV_PYPI_API_TOKEN }} | |
run: | | |
cd jaseci_serv | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
push_jac_nlp_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JAC_AI_PYPI_TOKEN }} | |
run: | | |
cd jaseci_ai_kit/jac_nlp | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
push_jac_speech_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JAC_AI_PYPI_TOKEN }} | |
run: | | |
cd jaseci_ai_kit/jac_speech | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
push_jac_vision_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JAC_AI_PYPI_TOKEN }} | |
run: | | |
cd jaseci_ai_kit/jac_vision | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
push_jac_misc_to_pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
pip install build | |
- name: Push to pypi | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.JAC_AI_PYPI_TOKEN }} | |
run: | | |
cd jaseci_ai_kit/jac_misc | |
python3 -m build | |
python3 -m twine upload --skip-existing dist/* | |
build-and-release-jaseci-docker-image: | |
name: Build Jaseci Docker image and push to dockerhub | |
runs-on: ubuntu-latest | |
needs: [push_jaseci_core_to_pypi, push_jaseci_serv_to_pypi] | |
steps: | |
# Someimtes there is a delay before the new pypi pacakges become available | |
- name: Sleep for 300s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 300s | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# login to dockerhub | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# a little string manipulation to get the tag number without the leading letter v | |
- name: Set versions | |
uses: actions/github-script@v6 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v_tag = tag.replace('v', '') | |
core.setOutput('no-v-tag', no_v_tag) | |
# build the image and push to docker hub | |
# 1. jaseci | |
- name: Build and push image -- Jaseci | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./support/docker/ | |
tags: | | |
jaseci/jaseci:${{steps.set_version.outputs.no-v-tag}} | |
jaseci/jaseci:latest | |
build-args: | | |
JASECI_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_SERV_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
file: ./support/docker/jaseci.Dockerfile | |
build-and-release-jac-nlp-image: | |
name: Build jac-nlp Docker image and push to dockerhub | |
runs-on: ubuntu-latest | |
needs: | |
[ | |
push_jaseci_core_to_pypi, | |
push_jaseci_serv_to_pypi, | |
push_jac_nlp_to_pypi, | |
] | |
steps: | |
# Someimtes there is a delay before the new pypi pacakges become available | |
- name: Sleep for 300s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 300s | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# login to dockerhub | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# a little string manipulation to get the tag number without the leading letter v | |
- name: Set versions | |
uses: actions/github-script@v6 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v_tag = tag.replace('v', '') | |
core.setOutput('no-v-tag', no_v_tag) | |
# build the image and push to docker hub | |
- name: Build and push image -- Jaseci with jaseci-ai-kit | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./support/docker/ | |
tags: | | |
jaseci/jac-nlp:${{steps.set_version.outputs.no-v-tag}} | |
jaseci/jac-nlp:latest | |
build-args: | | |
JASECI_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_SERV_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_AI_KIT_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
BUILD_WITH=jac-nlp | |
file: ./support/docker/jaseci.Dockerfile | |
build-and-release-jac-speech-image: | |
name: Build jac-speech Docker image and push to dockerhub | |
runs-on: ubuntu-latest | |
needs: | |
[ | |
push_jaseci_core_to_pypi, | |
push_jaseci_serv_to_pypi, | |
push_jac_speech_to_pypi, | |
] | |
steps: | |
# Someimtes there is a delay before the new pypi pacakges become available | |
- name: Sleep for 300s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 300s | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# login to dockerhub | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# a little string manipulation to get the tag number without the leading letter v | |
- name: Set versions | |
uses: actions/github-script@v6 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v_tag = tag.replace('v', '') | |
core.setOutput('no-v-tag', no_v_tag) | |
# build the image and push to docker hub | |
- name: Build and push image -- Jaseci with jaseci-ai-kit | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./support/docker/ | |
tags: | | |
jaseci/jac-speech:${{steps.set_version.outputs.no-v-tag}} | |
jaseci/jac-speech:latest | |
build-args: | | |
JASECI_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_SERV_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_AI_KIT_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
BUILD_WITH=jac-speech | |
file: ./support/docker/jaseci.Dockerfile | |
build-and-release-jac-vision-image: | |
name: Build jac-vision Docker image and push to dockerhub | |
runs-on: ubuntu-latest | |
needs: | |
[ | |
push_jaseci_core_to_pypi, | |
push_jaseci_serv_to_pypi, | |
push_jac_vision_to_pypi, | |
] | |
steps: | |
# Someimtes there is a delay before the new pypi pacakges become available | |
- name: Sleep for 300s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 300s | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# login to dockerhub | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# a little string manipulation to get the tag number without the leading letter v | |
- name: Set versions | |
uses: actions/github-script@v6 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v_tag = tag.replace('v', '') | |
core.setOutput('no-v-tag', no_v_tag) | |
# build the image and push to docker hub | |
- name: Build and push image -- Jaseci with jaseci-ai-kit | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./support/docker/ | |
tags: | | |
jaseci/jac-vision:${{steps.set_version.outputs.no-v-tag}} | |
jaseci/jac-vision:latest | |
build-args: | | |
JASECI_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_SERV_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_AI_KIT_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
BUILD_WITH=jac-vision | |
file: ./support/docker/jaseci.Dockerfile | |
build-and-release-jac-misc-image: | |
name: Build jac-misc Docker image and push to dockerhub | |
runs-on: ubuntu-latest | |
needs: | |
[ | |
push_jaseci_core_to_pypi, | |
push_jaseci_serv_to_pypi, | |
push_jac_misc_to_pypi, | |
] | |
steps: | |
# Someimtes there is a delay before the new pypi pacakges become available | |
- name: Sleep for 300s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 300s | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# setup Docker build action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# login to dockerhub | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# a little string manipulation to get the tag number without the leading letter v | |
- name: Set versions | |
uses: actions/github-script@v6 | |
id: set_version | |
with: | |
script: | | |
const tag = context.ref.substring(10) | |
const no_v_tag = tag.replace('v', '') | |
core.setOutput('no-v-tag', no_v_tag) | |
# build the image and push to docker hub | |
- name: Build and push image -- Jaseci with jaseci-ai-kit | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: ./support/docker/ | |
tags: | | |
jaseci/jac-misc:${{steps.set_version.outputs.no-v-tag}} | |
jaseci/jac-misc:latest | |
build-args: | | |
JASECI_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_SERV_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
JASECI_AI_KIT_PYPI_VERSION=${{steps.set_version.outputs.no-v-tag}} | |
BUILD_WITH=jac-misc | |
file: ./support/docker/jaseci.Dockerfile |