Skip to content

Commit

Permalink
Handled review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sulhicader committed Feb 12, 2024
1 parent ba5944b commit 6f71abb
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions .github/workflows/release-wave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
release:
name: Release Wave
runs-on: ubuntu-20.04

outputs:
build-version: ${{ env.VERSION }}

steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -154,46 +158,16 @@ jobs:
packages_dir: py/h2o_lightwave_web/dist
password: ${{ secrets.PYPI_LIGTHWAVE_WEB_TOKEN }}

create-bundle:
name: Create Wave Bundle
runs-on: ubuntu-latest

outputs:
build-version: ${{ env.VERSION }}

steps:
- uses: actions/checkout@v3

- name: Download H2O CLI
working-directory: ./py/apps/tour
run: mkdir -p .bin && curl -o .bin/h2o https://h2oai-cloud-release.s3.amazonaws.com/releases/ai/h2o/h2o-cloud/latest/cli/linux-amd64/h2o

- name: Change permissions
working-directory: ./py/apps/tour
working-directory: ./py/tmp/tour/
run: chmod +x .bin/h2o

- name: Set version
working-directory: ./py/apps/tour
run: sed -i -r -e "s/\{\{VERSION\}\}/${{ env.VERSION }}/g" app.toml

- name: Get App Version
id: get-build-version
run: |
echo "VERSION=${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
- name: Make the folder structure
run: |
find py/apps/tour -type f -name '*.toml' -exec sed -i -e "s/{{VERSION}}/${{ env.VERSION }}/g" {} \;
find py/apps/tour -type f -name 'requirements.txt' -exec sed -i -e "s/{{VERSION}}/${{ env.VERSION }}/g" {} \;
rsync -a py/examples py/apps/tour --exclude "*.idea*" --exclude "*__pycache__*" --exclude "*.mypy_cache*" --exclude "dist" --exclude "build"
cp tools/vscode-extension/base-snippets.json py/apps/tour/examples
cp tools/vscode-extension/component-snippets.json py/apps/tour/examples
cp tools/vscode-extension/server/utils.py py/apps/tour/examples/tour_autocomplete_utils.py
cp tools/vscode-extension/server/parser.py py/apps/tour/examples/tour_autocomplete_parser.py
sed -i -r -e "s#^@app\(('|\")(.*)('|\")(.*)#@app\('/'\4#" py/apps/tour/examples/tour.py
- name: Make air-gapped bundle
working-directory: ./py/apps/tour
working-directory: ./py/tmp/tour/
run: |
.bin/h2o bundle \
--docker-base-image 524466471676.dkr.ecr.us-east-1.amazonaws.com/q8s/launcher:v0.31.0-310 \
Expand All @@ -209,13 +183,13 @@ jobs:
with:
name: wave-bundle
path: |
./py/apps/tour/*.Dockerfile
./py/apps/tour/*.wave
./py/tmp/tour/*.Dockerfile
./py/tmp/tour/*.wave
- uses: actions/upload-artifact@v3
with:
name: wave-bundle-helm
path: py/apps/tour/helm/
path: py/tmp/tour/helm/

build-and-publish:
needs: create-bundle
Expand Down

0 comments on commit 6f71abb

Please sign in to comment.