From 6aa71cd4673a049855d38e8c3b12e4c41dbd09f8 Mon Sep 17 00:00:00 2001 From: Haomin Kong Date: Wed, 11 Sep 2024 17:03:11 +0800 Subject: [PATCH] fix(CI/CD): Support version Tags --- .github/workflows/docker-publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 327c416..dcc30a1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -25,8 +25,14 @@ jobs: run: | python --version pip --version + + - name: Set up Program Version + run: | python version.py - echo "PROGRAM_VERSION=${python version.py}" >> $GITHUB_ENV + PROGRAM_VERSION=$(python version.py) + echo "PROGRAM_VERSION=${PROGRAM_VERSION}" >> $GITHUB_ENV + - name: Echo Program Version + run: echo "'${{ env.PROGRAM_VERSION }}' will be used as the version of the program." - name: Build .jar file run: python build_with_docker.py