Skip to content

Commit

Permalink
Fix version displayed in UI when package is built by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Nov 30, 2020
1 parent 04ac09e commit c9606c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
run: |
make package
cp build/switchboard.tar.gz build/switchboard-${{ needs.prepare.outputs.version }}.tar.gz
env:
CI_VERSION: ${{ needs.prepare.outputs.version }}
- name: Upload build package
uses: actions/upload-artifact@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ JSBUNDLE=$(WEBUIAPP)/bundle.js
build-docker-image:
@GIT_COMMIT=$(shell git log -1 --pretty=format:"%H"|cut -c1-7) ;\
GIT_TAG=$(shell git describe --tags --abbrev=0) ;\
if [ ! -z "$${TRAVIS_TAG}" ]; then\
VERSION=$${TRAVIS_TAG} ;\
if [ ! -z "$${CI_VERSION}" ]; then\
VERSION=$${CI_VERSION} ;\
else\
VERSION=0.0.0 ;\
if [ ! -z $${GIT_TAG} ]; then\
Expand Down

0 comments on commit c9606c4

Please sign in to comment.