Skip to content

Commit

Permalink
packaging: Added to set version in app.toml on #2163
Browse files Browse the repository at this point in the history
  • Loading branch information
sulhicader committed Nov 16, 2023
1 parent f0c6a4f commit 3a00254
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/wave-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Change permissions
run: chmod +x .bin/h2o

- name: Set version
run: sed -i -r -e "s/\{\{VERSION\}\}/$(env.VERSION)/g" app.toml

- name: Get App Version
id: get-build-version
run: |
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/wave.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Wave Bundle

on: [push]
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true

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

jobs:
bundle:
Expand All @@ -16,11 +21,9 @@ jobs:
publish:
needs: bundle
name: Build and Publish
working-directory: ./university
uses: ./.github/workflows/wave-publish.yaml

helm-publish:
needs: bundle
name: Build and Publish Helm Chart
working-directory: ./university
uses: ./.github/workflows/helm-release.yaml

0 comments on commit 3a00254

Please sign in to comment.