Skip to content

Commit

Permalink
ci: Add job for wavelite. #1796
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Feb 24, 2023
1 parent ce91efb commit 2ffe51d
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/publish-wavelite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Wavelite

on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: "${{ github.event.inputs.version }}"

jobs:
publish:
name: Publish Wavelite
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GIT_TOKEN }}

- name: Build wavelite
run: make publish-wavelite

- name: Publish to PyPI - wavelite
uses: pypa/gh-action-pypi-publish@master
with:
packages_dir: py/h2o_wavelite/dist
password: ${{ secrets.PYPI_WAVELITE_TOKEN }}

- name: Publish to PyPI - wavelite_web
uses: pypa/gh-action-pypi-publish@master
with:
packages_dir: py/h2o_wavelite_web/dist
password: ${{ secrets.PYPI_WAVELITE_WEB_TOKEN }}
14 changes: 13 additions & 1 deletion .github/workflows/release-wave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,20 @@ jobs:
- name: Build university
run: make publish-university

- name: Publish Wave University to PyPI
- name: Publish to PyPI - wave_university
uses: pypa/gh-action-pypi-publish@master
with:
packages_dir: university/dist
password: ${{ secrets.PYPI_UNIVERSITY_TOKEN }}

- name: Publish to PyPI - wavelite
uses: pypa/gh-action-pypi-publish@master
with:
packages_dir: py/h2o_wavelite/dist
password: ${{ secrets.PYPI_WAVELITE_TOKEN }}

- name: Publish to PyPI - wavelite_web
uses: pypa/gh-action-pypi-publish@master
with:
packages_dir: py/h2o_wavelite_web/dist
password: ${{ secrets.PYPI_WAVELITE_WEB_TOKEN }}
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ publish-vsc-extension: ## Publish VS Code extension
publish-university:
cd university && $(MAKE) publish

publish-wavelite:
cd ui && npm ci && npm run build
cd py && $(MAKE) setup
cd py && $(MAKE) build-wavelite
cd py && $(MAKE) build-wavelite-web

.PHONY: tag
tag: ## Bump version and tag
cd py && $(MAKE) tag
Expand Down
1 change: 1 addition & 0 deletions py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ build-wavelite:
.PHONY: build-wavelite-web
build-wavelite-web:
cd h2o_wavelite_web && $(MAKE) build

setup: ## Install dependencies
git clone --depth 1 --branch $(WAVE_ML_VERSION) https://github.com/h2oai/wave-ml.git h2o_wave_ml
python3 -m venv venv
Expand Down

0 comments on commit 2ffe51d

Please sign in to comment.