Prepare release 0.68.0 (#3139) #158
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
--- | |
name: Release Package & Docker Image | |
on: | |
push: | |
tags: ['*'] | |
jobs: | |
setup-and-test: | |
uses: ./.github/workflows/unit-test.yml | |
with: | |
os: arc-runner-set | |
python-version: '3.9' | |
secrets: inherit | |
mysql-db-migration-testing: | |
runs-on: arc-runner-set | |
env: | |
ZENML_ANALYTICS_OPT_IN: false | |
ZENML_DEBUG: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5.0.0 | |
with: | |
python-version: '3.9' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Test migrations across versions | |
run: bash scripts/test-migrations.sh mysql | |
sqlite-db-migration-testing: | |
runs-on: arc-runner-set | |
env: | |
ZENML_ANALYTICS_OPT_IN: false | |
ZENML_DEBUG: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5.0.0 | |
with: | |
python-version: '3.9' | |
- name: Test migrations across versions | |
run: bash scripts/test-migrations.sh sqlite | |
mariadb-db-migration-testing: | |
runs-on: arc-runner-set | |
env: | |
ZENML_ANALYTICS_OPT_IN: false | |
ZENML_DEBUG: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4.8.0 | |
with: | |
python-version: '3.9' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Test migrations across versions | |
run: bash scripts/test-migrations.sh mariadb | |
publish-python-package: | |
if: github.repository == 'zenml-io/zenml' | |
needs: | |
- setup-and-test | |
- sqlite-db-migration-testing | |
- mysql-db-migration-testing | |
- mariadb-db-migration-testing | |
uses: ./.github/workflows/publish_to_pypi.yml | |
secrets: inherit | |
wait-for-package-release: | |
runs-on: arc-runner-set | |
needs: publish-python-package | |
steps: | |
- name: Sleep for 4 minutes | |
run: sleep 240 | |
shell: bash | |
publish-docker-image: | |
if: github.repository == 'zenml-io/zenml' | |
needs: wait-for-package-release | |
uses: ./.github/workflows/publish_docker_image.yml | |
secrets: inherit | |
publish-helm-chart: | |
if: github.repository == 'zenml-io/zenml' | |
needs: publish-docker-image | |
uses: ./.github/workflows/publish_helm_chart.yml | |
secrets: inherit | |
wait-for-package-release-again: | |
runs-on: arc-runner-set | |
needs: publish-helm-chart | |
steps: | |
- name: Sleep for 4 minutes | |
run: sleep 240 | |
shell: bash | |
publish-stack-templates: | |
if: github.repository == 'zenml-io/zenml' | |
needs: publish-python-package | |
uses: ./.github/workflows/publish_stack_templates.yml | |
secrets: inherit | |
# create a tag on the ZenML cloud plugins repo | |
create_tag_on_cloud_plugins_repo: | |
runs-on: ubuntu-latest | |
needs: wait-for-package-release-again | |
steps: | |
- name: Get the sha of the latest commit on plugins/main | |
id: get_sha | |
run: | | |
echo "::set-output name=sha::$(curl -s -H "Authorization: token ${{ secrets.CLOUD_PLUGINS_REPO_PAT }}" https://api.github.com/repos/zenml-io/zenml-cloud-plugins/commits/main | jq -r '.sha')" | |
- name: Get the version from the github tag ref | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Create a tag on ZenML Cloud plugins repo | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.CLOUD_PLUGINS_REPO_PAT }} | |
script: |- | |
await github.rest.git.createRef({ | |
owner: 'zenml-io', | |
repo: 'zenml-cloud-plugins', | |
ref: 'refs/tags/${{ steps.get_version.outputs.VERSION }}', | |
sha: '${{ steps.get_sha.outputs.sha }}' | |
}) |